Skip to content

Commit

Permalink
chore: #61 Set org.opencontainers label in CI build file
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Broudoux <[email protected]>
  • Loading branch information
lbroudoux committed Sep 24, 2024
1 parent 5c3aa53 commit 9b75869
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
runs-on: ubuntu-latest
environment: Build
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT

# Checkout repository content
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set environment for branch
run: |
Expand Down Expand Up @@ -58,4 +62,6 @@ jobs:
--provenance=false \
--build-arg TAG=$IMAGE_TAG \
--file Dockerfile.ubi-minimal \
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
--label "org.opencontainers.image.created=${{ steps.date.outputs.date }}" \
--tag=quay.io/microcks/microcks-postman-runtime:$IMAGE_TAG .

0 comments on commit 9b75869

Please sign in to comment.