File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,19 @@ build::puller:
1616 artifacts :
1717 paths :
1818 - " *.tar.gz"
19+ expire_in : 24 hours
1920
2021
2122deploy :
22- stage : deploy
23- image : ubuntu:20.04
24- dependencies :
25- - build::puller
26- only :
27- - tags
28- script :
29- - apt update && apt install -y curl bzip2
30- - curl -Lo - https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz | tar zxf -
31- - mv ghr_v0.13.0_linux_amd64/ghr . && rm -rf ghr_v0.13.0_linux_amd64
32- - ./ghr -t ${GITHUB_TOKEN} -u tcncloud -r please.containers -c ${CI_COMMIT_SHA} -replace ${CI_COMMIT_TAG} rules_docker_*.tar.gz
23+ stage : deploy
24+ image : ubuntu:20.04
25+ dependencies :
26+ - build::puller
27+ only :
28+ - tags
29+ before_script :
30+ - apt update && apt install -y curl bzip2
31+ - curl -Lo - https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz | tar zxf -
32+ - mv ghr_v0.13.0_linux_amd64/ghr . && rm -rf ghr_v0.13.0_linux_amd64
33+ script :
34+ - for i in rules_docker_*.tar.gz; do ./ghr -t ${GITHUB_TOKEN} -u tcncloud -r please.containers -c ${CI_COMMIT_SHA} -replace ${CI_COMMIT_TAG} $i; done
You can’t perform that action at this time.
0 commit comments