From a0697b81a178dbef1261ebfac0ea1827668838a9 Mon Sep 17 00:00:00 2001 From: Sammy1Am <467704+Sammy1Am@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:21:31 -0800 Subject: [PATCH] Replace hardcoded package name in CI workflow (#5281) --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df33eb051..366253cbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,10 @@ jobs: runs-on: ubuntu-latest name: Image Build steps: + - id: lowercaseRepo + uses: ASzc/change-string-case-action@v1 + with: + string: ${{ github.repository }} - name: Check out code uses: actions/checkout@v3 - name: Set up QEMU @@ -43,7 +47,7 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v7 target: frigate tags: | - ghcr.io/blakeblackshear/frigate:${{ github.ref_name }}-${{ env.SHORT_SHA }} + ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} cache-from: type=gha cache-to: type=gha,mode=max - name: Build and push TensorRT @@ -54,5 +58,5 @@ jobs: platforms: linux/amd64 target: frigate-tensorrt tags: | - ghcr.io/blakeblackshear/frigate:${{ github.ref_name }}-${{ env.SHORT_SHA }}-tensorrt + ghcr.io/${{ steps.lowercaseRepo.outputs.lowercase }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-tensorrt cache-from: type=gha