diff --git a/.github/workflows/flow-release.yml b/.github/workflows/flow-release.yml index b2c7cc3..2b0f62c 100644 --- a/.github/workflows/flow-release.yml +++ b/.github/workflows/flow-release.yml @@ -12,8 +12,11 @@ on: - '.**' workflow_dispatch: -jobs: +permissions: + packages: write + contents: read +jobs: checkout: name: 🔖 Checkout Repository runs-on: ubuntu-22.04 @@ -30,7 +33,7 @@ jobs: steps: - name: 🚀 release + docker # https://github.com/pagopa/github-actions-template/releases/tag/v2.0.0 - uses: pagopa/github-actions-template/payments-flow-release@b825ee193430395706a4a7e580b8435bdded0227 + uses: pagopa/github-actions-template/payments-flow-release@fix-maven-package-read with: current_branch: ${{ github.ref_name }} @@ -49,7 +52,7 @@ jobs: azure_devops_pat: ${{ secrets.AZURE_DEVOPS_TOKEN }} azure_template_parameters: | { - "APPS_TOP": "[p4pa-auth]", + "APPS_TOP": "[template]", "POSTMAN_BRANCH": "${{ github.ref_name }}", - "TRIGGER_MESSAGE": "p4pa-auth" + "TRIGGER_MESSAGE": "template" } diff --git a/.github/workflows/flow-snapshot-docker.yml b/.github/workflows/flow-snapshot-docker.yml index 090afe0..f499fd0 100644 --- a/.github/workflows/flow-snapshot-docker.yml +++ b/.github/workflows/flow-snapshot-docker.yml @@ -21,9 +21,9 @@ on: required: false default: 'true' argocd_target_branch: - description: 'argocd target branch name' - required: false - default: 'main' + description: 'argocd target branch name' + required: false + default: 'main' postman_branch: description: postman branch name' required: false @@ -33,6 +33,10 @@ env: # branch choosed by workflow_dispatch or by push event CURRENT_BRANCH: ${{ github.event.inputs.branch || github.ref_name }} +permissions: + packages: write + contents: read + jobs: checkout: name: 🔖 Checkout Repository @@ -56,7 +60,7 @@ jobs: - name: Run Snapshot Docker Build/Push # https://github.com/pagopa/github-actions-template/releases/tag/v2.0.0 - uses: pagopa/github-actions-template/payments-flow-docker-snapshot@b825ee193430395706a4a7e580b8435bdded0227 + uses: pagopa/github-actions-template/payments-flow-docker-snapshot@fix-maven-package-read with: current_branch: ${{ github.ref_name }} @@ -79,8 +83,8 @@ jobs: azure_devops_pat: ${{ secrets.AZURE_DEVOPS_TOKEN }} azure_template_parameters: | { - "APPS_TOP": "[one-color]", + "APPS_TOP": "[template]", "ARGOCD_TARGET_BRANCH": "${{ github.event.inputs.argocd_target_branch }}", "POSTMAN_BRANCH": "${{ github.event.inputs.postman_branch }}", - "TRIGGER_MESSAGE": "p4pa-auth" + "TRIGGER_MESSAGE": "template" } diff --git a/force-release b/force-release index dd3467d..3acca38 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -1623 +1221