Skip to content

Commit

Permalink
[NOD-473] fix: moved image version step
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-deri committed Sep 20, 2023
1 parent f12eadc commit c5610f4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/04_release_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 ]
Expand Down

0 comments on commit c5610f4

Please sign in to comment.