Skip to content

Commit d824260

Browse files
committed
swaks - fetch latest tag name from github release
1 parent 144994f commit d824260

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,10 @@ build:docker:webgrind:
116116

117117
build:docker:swaks:
118118
stage: build
119-
when: manual
120-
allow_failure: false
121119
script:
122120
- packer version
123121
- pushd swaks
124-
- TAG=20190914.0
122+
- TAG=$(curl -sL https://api.github.com/repos/jetmore/swaks/releases/latest | jq -r .tag_name | cut -c 2-)
125123
- echo 'TAG - ' $TAG
126124
- DOCKER_TOKEN=$DOCKER_HUB_TOKEN packer build --var docker_tag=$TAG box.json
127125
tags:

swaks/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Build
22

3-
`DOCKER_TOKEN=<docker_password_or_token> packer build --var docker_tag=20190914.0 box.json`
3+
To get latest tag, visit [swaks release page on GitHub](https://github.com/jetmore/swaks/releases)
4+
5+
`DOCKER_TOKEN=<docker_password_or_token> packer build --var docker_tag=20240103.0 box.json`
46

57
## Run
68

0 commit comments

Comments
 (0)