From 4797e319fb7c8cd5840e64a46cb559d14ec917c0 Mon Sep 17 00:00:00 2001 From: Alvaro Moran Date: Mon, 24 Jun 2024 15:46:02 +0000 Subject: [PATCH] fix image version --- .github/workflows/tpu-tgi-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tpu-tgi-release.yml b/.github/workflows/tpu-tgi-release.yml index 9b4e60c6..7f9828f6 100644 --- a/.github/workflows/tpu-tgi-release.yml +++ b/.github/workflows/tpu-tgi-release.yml @@ -16,6 +16,9 @@ jobs: contents: read attestations: write id-token: write + env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} steps: - name: Check out the repo uses: actions/checkout@v4 @@ -29,7 +32,7 @@ jobs: - name: Log in to the Container registry uses: docker/login-action@v3 with: - registry: ghcr.io + registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} @@ -68,6 +71,6 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true