Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01cbc7a

Browse files
committed
chore(ci): update latest docker image for every tag
1 parentdad6805 commit01cbc7a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎.gitlab-ci.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ image: python:3.7
22

33
stages:
44
-deploy
5+
-deploy-latest
56

67
deploy:
78
stage:deploy
@@ -28,3 +29,13 @@ deploy_image:
2829
-/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
2930
only:
3031
-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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp