diff --git a/.github/workflows/build-verify.yml b/.github/workflows/build-verify.yml index 30527f8..81dcee2 100644 --- a/.github/workflows/build-verify.yml +++ b/.github/workflows/build-verify.yml @@ -12,14 +12,19 @@ on: - '.gitignore' - 'LICENSE' - '*.md' - +permissions: read-all jobs: build-verify-package: runs-on: ubuntu-latest environment: Build steps: + - name: Get current date + id: date + #run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')" + run: echo "date=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT + - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Go uses: actions/setup-go@v2 @@ -67,4 +72,6 @@ jobs: --provenance=false \ --build-arg TAG=$IMAGE_TAG \ --file build/Dockerfile \ + --label "org.opencontainers.image.revision=${GITHUB_SHA}" \ + --label "org.opencontainers.image.created=${{ steps.date.outputs.date }}" \ --tag=quay.io/microcks/microcks-cli:$IMAGE_TAG . diff --git a/build/Dockerfile b/build/Dockerfile index aac3d4c..6162276 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -10,7 +10,14 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ # Build image FROM registry.access.redhat.com/ubi9/ubi-minimal:9.3-1475 -MAINTAINER Laurent Broudoux +# Some version information +LABEL maintainer="Laurent Broudoux " \ + org.opencontainers.image.authors="Laurent Broudoux " \ + org.opencontainers.image.title="Microcks CLI" \ + org.opencontainers.image.description="Microcks is Open Source cloud-native native tool for API Mocking and Testing" \ + org.opencontainers.image.licenses="Apache-2.0" \ + org.opencontainers.image.documentation="https://github.com/microcks/microcks-cli" \ + io.artifacthub.package.readme-url="https://raw.githubusercontent.com/microcks/microcks-cli/main/README.md" ENV CLI=/usr/local/bin/microcks-cli \ USER_UID=1001 \