Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Oct 25, 2023
1 parent 72bce39 commit 8bd09c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
images: ghcr.io/code4romania/seismic-risc-backend
context: ./
dockerfile: ./docker/dockerfiles/Dockerfile.backend
platform: linux/amd64
platform: linux/amd64,linux/arm64
registry: ghcr.io
secrets:
username: ${{ github.actor }}
Expand Down
8 changes: 7 additions & 1 deletion docker/dockerfiles/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ ENV IS_CONTAINERIZED=True

ENV DEBIAN_FRONTEND=noninteractive


RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -72,6 +71,13 @@ COPY ./api .
# Make sure scripts in .local are usable:
ENV PATH=/root/.local/bin:$PATH


# Set the version and revision of the build:
ARG VERSION
ARG REVISION
RUN echo "$VERSION ($(echo ${REVISION} | cut -c 1-7))" > /var/www/.version


# activate the virtualenv:
RUN . "${VIRTUAL_ENV}/bin/activate"

Expand Down

0 comments on commit 8bd09c2

Please sign in to comment.