Skip to content

Commit

Permalink
Add a build number
Browse files Browse the repository at this point in the history
  • Loading branch information
duchenean committed Jul 18, 2024
1 parent f95e7a0 commit 71a8ee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
env:
IMAGE_NAME: delib/deliberationsbe
BUILD_NUMBER: ${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}

jobs:
docker:
Expand All @@ -22,4 +23,4 @@ jobs:
MATTERMOST_WEBHOOK_URL: ${{ secrets.DELIB_MATTERMOST_WEBHOOK_URL }}
CONTEXT: '.'
DOCKERFILE: 'Dockerfile'
BUILD_ARGS: ''
BUILD_ARGS: 'build_number=${{ env.BUILD_NUMBER }}'
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ENV PIP=23.3.1 \
PROJECT_ID=delib \
PLONE_EXTENSION_IDS=plone.app.caching:default,plonetheme.barceloneta:default,plonemeeting.portal.core:default \
DEFAULT_LANGUAGE=fr
ENV BUILD_NUMBER $build_number

VOLUME /data/blobstorage
WORKDIR /plone
Expand Down Expand Up @@ -77,6 +78,7 @@ COPY --from=builder /usr/local/bin/py-spy /usr/local/bin/py-spy
COPY --chown=imio --from=builder /plone .
COPY --from=builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --chown=imio docker-initialize.py docker-entrypoint.sh /
RUN echo $BUILD_NUMBER > .build_number

USER imio
EXPOSE 8081
Expand Down

0 comments on commit 71a8ee8

Please sign in to comment.