From 4fc73f47aa6c7135f3a9c8a83d936add67ef7cfd Mon Sep 17 00:00:00 2001 From: Pugma Date: Tue, 22 Oct 2024 14:41:56 +0900 Subject: [PATCH] fix: remove PR number setting --- .github/workflows/preview.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index abec9ad..5c8df95 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -15,9 +15,6 @@ jobs: name: Build Preview Image runs-on: ubuntu-latest steps: - - name: Set PR_NUMBER env - run: echo "PR_NUMBER=${{ github.event.number }}" >> $GITHUB_ENV - - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} @@ -47,5 +44,5 @@ jobs: with: context: . push: true - tags: ghcr.io/traptitech/${{ env.IMAGE_NAME }}:preview-${{ env.PR_NUMBER }}-${{ github.event.pull_request.head.sha }} + tags: ghcr.io/traptitech/${{ env.IMAGE_NAME }}:preview-${{ github.event.number }}-${{ github.event.pull_request.head.sha }} cache-from: type=registry,ref=ghcr.io/traptitech/${{ env.IMAGE_NAME }}:buildcache