From 1770be2549e130d7f9670ac3ac2cb2de76b5e6bc Mon Sep 17 00:00:00 2001 From: Lee Peuker Date: Tue, 28 Jun 2022 19:30:27 +0200 Subject: [PATCH] Add app version to prod image --- .github/workflows/dockerhub-tag.yml | 2 ++ build/php/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/dockerhub-tag.yml b/.github/workflows/dockerhub-tag.yml index a125ae9a..61c603c6 100644 --- a/.github/workflows/dockerhub-tag.yml +++ b/.github/workflows/dockerhub-tag.yml @@ -33,3 +33,5 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + APPLICATION_VERSION=${{ steps.meta.outputs.tags }} diff --git a/build/php/Dockerfile b/build/php/Dockerfile index 8b2cd5a3..a7021c03 100644 --- a/build/php/Dockerfile +++ b/build/php/Dockerfile @@ -5,6 +5,8 @@ USER application WORKDIR /app FROM development AS production +ARG APPLICATION_VERSION +ENV APPLICATION_VERSION=${APPLICATION_VERSION} COPY --chown=application ./ ./ COPY .env.production.example .env RUN composer install --no-dev