From 2fc35dc3d6e66f0b16f1298902c0399d68a6f6d1 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 8 Nov 2023 02:23:32 +0330 Subject: [PATCH] chore: fix ci issue --- .github/workflows/publish-container.yml | 4 ++-- alpine/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 297c091..24b194c 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -115,8 +115,8 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache build-args: | - BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') - BUILD_REV=$(git rev-parse HEAD) + BUILD_DATE=${{github.event.repository.updated_at}} + BUILD_REV=${{github.sha}} - name: 🏗 Sign the image with GitHub OIDC Token if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder == 'true' }} diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 1fc5bae..b6e339a 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -1,7 +1,7 @@ FROM docker.io/library/alpine:3.17 -ARG BUILD_DATE ARG BUILD_REV +ARG BUILD_DATE LABEL org.opencontainers.image.title="alwatr/alpine" \ org.opencontainers.image.description="This is a lightweight Linux image for use in containerized applications. It includes only the necessary packages and dependencies to keep the image size small and efficient, packaged by Alwatr." \ org.opencontainers.image.base.name="docker.io/library/alpine:3.17" \