Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsgoff committed Jan 22, 2023
1 parent 4063896 commit 027bd48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
build:
stage: build
services: []
variables:
TAG: V.1.7
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
# CI_DOCKERHUB_AUTH=`echo -n $USERNAME:$TOKEN | base64`
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"${CI_DOCKERHUB_AUTH}\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination=${ACCOUNT}/${CI_PROJECT_NAME}:${CI_PIPELINE_IID} --destination=${ACCOUNT}/${CI_PROJECT_NAME}:latest
- /kaniko/executor --build-arg TAG=${TAG} --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination=${ACCOUNT}/${CI_PROJECT_NAME}:${CI_PIPELINE_IID} --destination=${ACCOUNT}/${CI_PROJECT_NAME}:${TAG}

0 comments on commit 027bd48

Please sign in to comment.