Loading .gitlab-ci.yml +11 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: python:3.7 stages: - deploy - deploy-latest deploy: stage: deploy Loading @@ -28,3 +29,13 @@ deploy_image: - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG only: - tags deploy-latest: stage: deploy-latest image: golang:1.12.4-stretch script: - go get github.com/google/go-containerregistry/cmd/crane - mkdir /root/.docker && echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json - crane cp $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG $CI_REGISTRY_IMAGE:latest only: - tags Loading
.gitlab-ci.yml +11 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: python:3.7 stages: - deploy - deploy-latest deploy: stage: deploy Loading @@ -28,3 +29,13 @@ deploy_image: - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG only: - tags deploy-latest: stage: deploy-latest image: golang:1.12.4-stretch script: - go get github.com/google/go-containerregistry/cmd/crane - mkdir /root/.docker && echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json - crane cp $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG $CI_REGISTRY_IMAGE:latest only: - tags