Skip to content
Snippets Groups Projects
Commit 6fbc6fb2 authored by Bengt Giger's avatar Bengt Giger
Browse files

Attempt to work around wrong version in tagged images, 3rd attempt

parent 7b99fe7f
No related branches found
Tags 0.0.29
No related merge requests found
Pipeline #237649 passed
ARG CI_COMMIT_TAG
FROM python:3.11-alpine
LABEL authors="Bengt Giger <bgiger@ethz.ch>"
LABEL maintainer="Bengt Giger <bgiger@ethz.ch>"
......@@ -9,7 +8,7 @@ COPY dist/* .
# Version tagged image used to have the same hash like the previous build.
# The installed Python package was then the pre-tag version.
# This ensures unique builds, and the tagged package version.
RUN echo $CI_COMMIT_TAG >/.commit_tag
RUN date >/.timestamp
RUN pip install *.whl
RUN addgroup py && adduser -D -G py py
......
......@@ -6,7 +6,7 @@ LABEL authors="Bengt Giger <bgiger@ethz.ch>"
LABEL maintainer="Bengt Giger <bgiger@ethz.ch>"
USER root
RUN echo $CI_COMMIT_TAG >/.commit_tag
RUN date >/.timestamp
RUN apk add docker && addgroup py docker
USER py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment