CI: Also push the versioned image tag
This commit is contained in:
parent
27e6ef74f8
commit
20a6276d5e
2 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,8 @@ package:
|
|||
before_script:
|
||||
- podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
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:$(grep -e 'ENV VERSION=' Dockerfile | sed -e 's/.*=//')"
|
||||
only:
|
||||
- master
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
FROM docker.io/library/openjdk:17-alpine
|
||||
|
||||
ENV VERSION=2.2.1 \
|
||||
SHA1=c4ae4900d2b0dbc0744cfde21f5120cdd5c4ae8f
|
||||
ENV VERSION=2.2.1
|
||||
ENV SHA1=c4ae4900d2b0dbc0744cfde21f5120cdd5c4ae8f
|
||||
|
||||
RUN mkdir -p /opt/blockmap /input /output && \
|
||||
apk add --update --no-cache su-exec binutils gettext libintl && \
|
||||
|
|
Loading…
Add table
Reference in a new issue