diff --git a/.github/workflows/release_deploy.yml b/.github/workflows/release_deploy.yml index 20bd312..08b580e 100644 --- a/.github/workflows/release_deploy.yml +++ b/.github/workflows/release_deploy.yml @@ -111,13 +111,39 @@ jobs: if: ${{ inputs.semver != 'skip' }} environment: ${{ inputs.environment }} steps: - - name: Build and Push - id: semver - uses: pagopa/github-actions-template/ghcr-build-push@v1.5.4 + - uses: actions/checkout@v3 with: - branch: ${{ github.ref_name}} - github_token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ needs.release.outputs.version }} + ref: ${{ needs.release.outputs.version }} + + - name: Update WSDL Location + run: sh upd_wsdl_location.sh ${{ vars.NODO_HOST }} + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Docker meta + id: meta + uses: docker/metadata-action@v4.3.0 + with: + images: ghcr.io/${{ github.repository }} + tags: | + latest + ${{ needs.release.outputs.version }} + type=ref,event=branch + type=sha + + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: ${{ inputs.build_args }} deploy_azure_fn: name: Deploy Azure function diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 6a722a0..7b3f7a3 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: pagopa-functions-template description: Microservice description type: application -version: 0.12.0 -appVersion: 0.1.5-1-PAGOPA-1176-remove-deploy-pipeline +version: 0.16.0 +appVersion: 0.1.5-5-fix-release-action dependencies: - name: microservice-chart version: 1.21.0 diff --git a/helm/values-dev.yaml b/helm/values-dev.yaml index 58ef9e5..8cd4825 100644 --- a/helm/values-dev.yaml +++ b/helm/values-dev.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopadcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.5-1-PAGOPA-1176-remove-deploy-pipeline" + tag: "0.1.5-5-fix-release-action" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index c421ed0..91d77ed 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopapcommonacr.azurecr.io/pagopa # TODO - tag: "0.1.5-1-PAGOPA-1176-remove-deploy-pipeline" + tag: "0.1.5-5-fix-release-action" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/helm/values-uat.yaml b/helm/values-uat.yaml index a4374cf..53a4447 100644 --- a/helm/values-uat.yaml +++ b/helm/values-uat.yaml @@ -4,7 +4,7 @@ microservice-chart: fullnameOverride: "" image: repository: pagopaucommonacr.azurecr.io/pagopa # TODO - tag: "0.1.5-1-PAGOPA-1176-remove-deploy-pipeline" + tag: "0.1.5-5-fix-release-action" pullPolicy: Always # https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/HostController.cs livenessProbe: diff --git a/pom.xml b/pom.xml index 119d5dd..60348b9 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa.reporting reporting-batch - 0.1.5-1-PAGOPA-1176-remove-deploy-pipeline + 0.1.5-5-fix-release-action jar Azure Reporting-Batch Fn