From 3b4e454ace0a04f9f6dae22b95cb2da4a8b16411 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Thu, 31 Aug 2023 10:29:12 -0400 Subject: [PATCH] fix: tag fixed --- .github/workflows/pull-request.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 130994e69..79d4ad17f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -34,20 +34,20 @@ jobs: uses: aws-actions/amazon-ecr-login@v1 - name: Tag id: tag + env: + REGISTRY: ${{ steps.login-ecr.outputs.registry }} run: | git_hash=$(git rev-parse --short "$GITHUB_SHA") - echo "{tag}={$git_hash}" >> "$GITHUB_OUTPUT" + image_tag="$REGISTRY/unraid/api-builder:$git_hash" + echo "{tag}={$image_tag}" >> "$GITHUB_OUTPUT" - uses: docker/setup-buildx-action@v1 - name: Build and push uses: docker/build-push-action@v4 - env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} - TAG: ${{ steps.tag.outputs.tag }} with: context: api target: builder push: true - tags: "${{ REGISTRY }}/unraid/api-builder:${{ TAG }}" + tags: ${{ steps.tag.outputs.tag}} cache-from: type=gha cache-to: type=gha,mode=max