From b4be462ce50277ef15dbbf6ac6c1374eba8065f3 Mon Sep 17 00:00:00 2001 From: Matt Kilgore Date: Fri, 28 Jun 2024 11:27:28 -0400 Subject: [PATCH] fix(ci): broken CI/CD (#71) * fix(ci): broken CI/CD * fix(ci): rootless docker build * Update .github/workflows/docker-publish-rootless.yaml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/docker-publish-rootless.yaml | 5 ++--- .github/workflows/docker-publish.yaml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-publish-rootless.yaml b/.github/workflows/docker-publish-rootless.yaml index f5322894..663447d0 100644 --- a/.github/workflows/docker-publish-rootless.yaml +++ b/.github/workflows/docker-publish-rootless.yaml @@ -88,8 +88,7 @@ jobs: cache-to: type=gha,mode=max build-args: | VERSION=${{ github.ref_name }} - COMMIT=$(git rev-parse HEAD) - BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + COMMIT=${{ github.sha }} - name: Attest uses: actions/attest-build-provenance@v1 @@ -98,4 +97,4 @@ jobs: with: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-digest: ${{ steps.build-and-push.outputs.digest }} - push-to-registry: true \ No newline at end of file + push-to-registry: true diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index 9458d39c..7f076427 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -85,8 +85,7 @@ jobs: cache-to: type=gha,mode=max build-args: | VERSION=${{ github.ref_name }} - COMMIT=$(git rev-parse HEAD) - BUILD_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + COMMIT=${{ github.sha }} - name: Attest uses: actions/attest-build-provenance@v1 @@ -95,4 +94,4 @@ jobs: with: subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-digest: ${{ steps.build-and-push.outputs.digest }} - push-to-registry: true \ No newline at end of file + push-to-registry: true