Skip to content

Commit 16d9049

Browse files
committed
Use registry-auth-config
1 parent a6b910e commit 16d9049

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

wercker.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ build:
3333
if [ "$IMAGE_TAG_OPERATOR" = "master" ]; then
3434
export IMAGE_TAG_OPERATOR="1.0"
3535
fi
36-
docker login -u $REPO_USERNAME -p $REPO_PASSWORD
3736
- script:
3837
name: Install pre-reqs
3938
code: |
@@ -46,6 +45,13 @@ build:
4645
dockerfile: Dockerfile
4746
image-name: $REPO_REPOSITORY:$IMAGE_TAG_OPERATOR
4847
no-cache: true
48+
registry-auth-config: |
49+
{
50+
"https://index.docker.io/v1/": {
51+
"username": "$REPO_USERNAME",
52+
"password": "$REPO_PASSWORD"
53+
}
54+
}
4955
# push the image to Docker using the GIT branch as the tag
5056
# this image needs to be available to the integration-test pipeline for testing
5157
- internal/docker-push:
@@ -54,9 +60,6 @@ build:
5460
repository: $REPO_REPOSITORY
5561
registry: $REPO_REGISTRY
5662
tag: $IMAGE_TAG_OPERATOR
57-
working-dir: "/operator"
58-
cmd: "operator.sh"
59-
env: "PATH=$PATH:/operator"
6063

6164
# This pipeline runs the integration tests against a k8s cluster on OCI.
6265
command-timeout: 60

0 commit comments

Comments
 (0)