From c6988b9cbb22f1c9540dca7ed054d354847c1474 Mon Sep 17 00:00:00 2001 From: Aaqib Mujtaba <117231666+aaqib-m@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:19:00 -0700 Subject: [PATCH] fix: tag reference for publishing --- .github/workflows/{release.yml => publish.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{release.yml => publish.yml} (88%) diff --git a/.github/workflows/release.yml b/.github/workflows/publish.yml similarity index 88% rename from .github/workflows/release.yml rename to .github/workflows/publish.yml index 8e28d60..1031c95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/publish.yml @@ -22,11 +22,11 @@ jobs: id: get_metadata run: | if [ "${{ github.event_name }}" == "push" ]; then - IMG_TAG="${{ github.ref }}" + IMG_TAG="${{ github.ref_name }}" else IMG_TAG=${{ github.event.inputs.releaseTag }} fi - IMG="/public/aks/msi-acrpull:${IMG_TAG}" + IMG="public/aks/msi-acrpull:${IMG_TAG}" echo "IMG_TAG=${IMG_TAG}" >> ${GITHUB_OUTPUT} echo "IMG=${IMG}" >> ${GITHUB_OUTPUT} outputs: @@ -38,7 +38,7 @@ jobs: labels: ["self-hosted", "1ES.Pool=${{ vars.RUNNER_BASE_NAME}}-ubuntu"] needs: setup env: - IMG: ${{ secrets.AZURE_CONTAINER_REGISTRY }}${{ needs.setup.outputs.IMG }} + IMG: ${{ secrets.AZURE_CONTAINER_REGISTRY }}/${{ needs.setup.outputs.IMG }} steps: - name: Check out code uses: actions/checkout@v4