We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0736f commit bb942ceCopy full SHA for bb942ce
1 file changed
.gitlab-ci.yml
@@ -13,17 +13,18 @@ build-docker:
13
- if: $CI_COMMIT_TAG =~ /.+/
14
variables:
15
VID: $CI_COMMIT_TAG
16
- CLEAN_TAG: ""
+
17
- when: manual
18
stage: build
19
before_script:
20
- apk update
21
- apk add --no-cache git
22
23
script:
24
- - CLEAN_TAG="${CI_COMMIT_TAG:1}"
25
- - docker build -f Dockerfile -t korap/kustvakt:$CLEAN_TAG .
26
- - docker save korap/kustvakt:$CLEAN_TAG | xz > kustvakt-$CLEAN_TAG.tar.xz
+ - clean_tag="${CI_COMMIT_TAG:1}"
+ - echo "CLEAN_TAG=$(clean_tag)" >> $GITLAB_ENV
+ - docker build -f Dockerfile -t korap/kustvakt:$clean_tag .
27
+ - docker save korap/kustvakt:$clean_tag | xz > kustvakt-$clean_tag.tar.xz
28
artifacts:
29
paths:
30
- kustvakt-$CLEAN_TAG.tar.xz
0 commit comments