Skip to content

Commit f60795f

Browse files
author
Florin Stan
committed
try another way to deploy
1 parent 9ba368e commit f60795f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.gitlab-ci.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ build::puller:
1616
artifacts:
1717
paths:
1818
- "*.tar.gz"
19+
expire_in: 24 hours
1920

2021

2122
deploy:
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

0 commit comments

Comments
 (0)