1
0
Fork 0

CI: Also push the versioned image tag

This commit is contained in:
saibotk 2021-10-19 23:37:46 +02:00
parent 27e6ef74f8
commit 20a6276d5e
Signed by: saibotk
GPG key ID: 67585F0065E261D5
2 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,8 @@ package:
before_script: before_script:
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script: script:
- podman build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE" . - podman build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE" -t "$CI_REGISTRY_IMAGE:$(grep -e 'ENV VERSION=' Dockerfile | sed -e 's/.*=//')" .
- podman push "$CI_REGISTRY_IMAGE" - podman push "$CI_REGISTRY_IMAGE"
- podman push "$CI_REGISTRY_IMAGE:$(grep -e 'ENV VERSION=' Dockerfile | sed -e 's/.*=//')"
only: only:
- master - master

View file

@ -1,7 +1,7 @@
FROM docker.io/library/openjdk:17-alpine FROM docker.io/library/openjdk:17-alpine
ENV VERSION=2.2.1 \ ENV VERSION=2.2.1
SHA1=c4ae4900d2b0dbc0744cfde21f5120cdd5c4ae8f ENV SHA1=c4ae4900d2b0dbc0744cfde21f5120cdd5c4ae8f
RUN mkdir -p /opt/blockmap /input /output && \ RUN mkdir -p /opt/blockmap /input /output && \
apk add --update --no-cache su-exec binutils gettext libintl && \ apk add --update --no-cache su-exec binutils gettext libintl && \