Skip to content

Commit

Permalink
feat: Add image repository metadata as build args (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Anders K. Pettersen <[email protected]>
  • Loading branch information
staticaland and staticaland authored Jan 30, 2024
1 parent 0f7af5e commit 579ba68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/reusable-docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ jobs:
platforms: ${{ inputs.platforms }}
provenance: false
build-args: |
ECR_REPOSITORY_NAME=${{ inputs.ecr_repository_name }}
GHCR_IMAGE_NAME=${{ inputs.ghcr_image_name || github.repository }}
IMAGE_CREATED_DATETIME=${{ fromJSON(steps.docker-meta.outputs.json).labels['org.opencontainers.image.created'] }}
IMAGE_VERSION=${{ fromJSON(steps.docker-meta.outputs.json).labels['org.opencontainers.image.version'] }}
IMAGE_REVISION=${{ fromJSON(steps.docker-meta.outputs.json).labels['org.opencontainers.image.revision'] }}
Expand Down

0 comments on commit 579ba68

Please sign in to comment.