Skip to content

Commit

Permalink
fix: docker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Jan 12, 2025
1 parent 9cddc17 commit 163a512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355
# v6.10.0
with:
annotations: ${{ steps.metadata.outputs.annotations }}
context: ${{ inputs.working-directory }}
file: ${{ inputs.working-directory }}/${{ inputs.dockerfile }}
labels: ${{ steps.metadata.outputs.labels }}
Expand Down Expand Up @@ -142,3 +143,4 @@ jobs:
with:
subject-name: ${{ inputs.registry }}/${{ inputs.image }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true
2 changes: 2 additions & 0 deletions auto-tagger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
COPY *.py /app/
RUN chmod -R a+r /app
USER app
LABEL org.opencontainers.image.source=https://github.com/notdodo/github-actions/tree/main/auto-tagger
LABEL org.opencontainers.image.description="A GitHub Action to automatically bump and/or create tags upon push to the default branch, using SemVer formatting."

CMD ["python", "/app/main.py"]

0 comments on commit 163a512

Please sign in to comment.