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 ad6fc3e
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 (${REVISION:0:7})" > /var/www/.version


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

Expand Down

0 comments on commit ad6fc3e

Please sign in to comment.