Skip to content

Commit

Permalink
ci: add label through metadata
Browse files Browse the repository at this point in the history
Attempt 2
  • Loading branch information
rudivanhierden committed Dec 21, 2023
1 parent 2472a5c commit ea32483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
images: ${{ env.IMAGE }}
labels: |
org.opencontainers.image.description=Openstad Headless ${{ matrix.app }}, related commit: https://github.com/${{ github.repository_owner}}/commit/{{sha}}
org.opencontainers.image.description=Openstad Headless ${{ matrix.app }}, related commit: https://github.com/${{ github.repository_owner}}/commit/${{ github.sha }}
tags: |
# branch event
type=ref,event=branch,suffix=-{{sha}}
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ ARG APP
ARG PORT
ENV WORKSPACE apps/${APP}

LABEL org.opencontainers.image.description="Openstad Headless ${APP} image"

WORKDIR /opt/openstad-headless

# copy files
Expand Down

0 comments on commit ea32483

Please sign in to comment.