diff --git a/.agola/config.jsonnet b/.agola/config.jsonnet index efa169f..3a92b12 100644 --- a/.agola/config.jsonnet +++ b/.agola/config.jsonnet @@ -77,7 +77,8 @@ local task_build(version, arch) = { ], }, environment: { - DOCKERAUTH: { from_variable: 'dockerauth' }, + DOCKERAUTH: { from_variable: 'harborauth' }, + DOCKERURL: { from_variable: 'harborauth' }, }, shell: '/busybox/sh', working_dir: '/workspace', @@ -90,13 +91,13 @@ local task_build(version, arch) = { cat << EOF > /kaniko/.docker/config.json { "auths": { - "https://index.docker.io/v1/": { "auth" : "$DOCKERAUTH" } + "$DOCKERURL": { "auth" : "$DOCKERAUTH" } } } EOF |||, }, - { type: 'run', command: '/kaniko/executor --destination sorintlab/agola-web:$AGOLA_GIT_TAG' }, + { type: 'run', command: '/kaniko/executor --destination build.tuxpa.in/tux/agola-web:$AGOLA_GIT_TAG' }, ], depends: ['checkout code and save to workspace'], when: {