| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dad6805 commit 01cbc7a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,7 @@ image: python:3.7 | |||
| 2 | 2 | ||
| 3 | 3 | stages: | |
| 4 | 4 | - deploy | |
| 5 | + - deploy-latest | ||
| 5 | 6 | ||
| 6 | 7 | deploy: | |
| 7 | 8 | stage: deploy | |
@@ -28,3 +29,13 @@ deploy_image: | |||
| 28 | 29 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG | |
| 29 | 30 | only: | |
| 30 | 31 | - tags | |
| 32 | + | ||
| 33 | + deploy-latest: | ||
| 34 | + stage: deploy-latest | ||
| 35 | + image: golang:1.12.4-stretch | ||
| 36 | + script: | ||
| 37 | + - go get github.com/google/go-containerregistry/cmd/crane | ||
| 38 | + - mkdir /root/.docker && echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json | ||
| 39 | + - crane cp $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG $CI_REGISTRY_IMAGE:latest | ||
| 40 | + only: | ||
| 41 | + - tags | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments