diff --git a/.github/workflows/04_release_deploy.yml b/.github/workflows/04_release_deploy.yml index 3d7283e..8548446 100644 --- a/.github/workflows/04_release_deploy.yml +++ b/.github/workflows/04_release_deploy.yml @@ -140,6 +140,7 @@ jobs: needs: [setup] outputs: version: ${{ steps.release.outputs.version }} + registry_image: ${{ steps.get_image.outputs.registry_image }} steps: - name: Make Release id: release @@ -149,14 +150,16 @@ jobs: github_token: ${{ secrets.BOT_TOKEN_GITHUB }} beta: false + - name: Set image name from container registry + id: get_image + run: echo "registry_image=ghcr.io/pagopa/pagopa-nodo-re-to-tablestorage:${{env.version}}" >> $GITHUB_OUTPUT + build-and-push: needs: [ setup, release ] name: Build and Push Docker Image runs-on: ubuntu-latest if: ${{ needs.setup.outputs.semver != 'skip' }} environment: ${{ needs.setup.outputs.environment }} - outputs: - registry_image: ${{ steps.get_image.outputs.registry_image }} steps: - name: Build and Push id: semver @@ -166,10 +169,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ needs.release.outputs.version }} - - id: get_image - name: Set Registry Image - run: echo "registry_image=ghcr.io/pagopa/pagopa-nodo-re-to-tablestorage:${{needs.release.outputs.version}}" >> $GITHUB_OUTPUT - deploy_azure_fn: name: Deploy Azure function needs: [ setup, release, build-and-push ]