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