Skip to content

Commit

Permalink
Add app version to prod image
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Jun 28, 2022
1 parent 20a9820 commit 1770be2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dockerhub-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions build/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1770be2

Please sign in to comment.