@@ -2,76 +2,41 @@ name: Deploy on AKS
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ environment :
7+ required : true
8+ type : string
9+ branch :
10+ required : false
11+ default : ${{ github.ref_name }}
12+ type : string
513
614env :
715 NAMESPACE : afm
816 APP_NAME : rtp-platform-qa
917
10-
1118permissions :
1219 id-token : write
1320 contents : read
1421
1522jobs :
1623 deploy :
1724 runs-on : [ self-hosted-job, "${{ inputs.environment }}" ]
18- name : Deploy on AKS
1925 environment : ${{ inputs.environment }}
2026 steps :
21- - name : Deploy
27+ - uses : actions/checkout@v4
28+
29+ - name : Deploy to AKS
2230 uses : pagopa/github-actions-template/aks-deploy@feature/SRTP-765-implement-api-send-gpd-message
23- # uses: pagopa/github-actions-template/aks-deploy@main
2431 with :
2532 branch : ${{ inputs.branch }}
2633 client_id : ${{ secrets.CLIENT_ID }}
2734 subscription_id : ${{ secrets.SUBSCRIPTION_ID }}
2835 tenant_id : ${{ secrets.TENANT_ID }}
2936 env : ${{ inputs.environment }}
30- namespace : ${{ vars .NAMESPACE }}
37+ namespace : ${{ env .NAMESPACE }}
3138 cluster_name : ${{ vars.CLUSTER_NAME }}
3239 resource_group : ${{ vars.CLUSTER_RESOURCE_GROUP }}
3340 app_name : ${{ env.APP_NAME }}
34- helm_upgrade_options : " --debug --set microservice-chart.azure.workloadIdentityClientId=${{vars.WORKLOAD_IDENTITY_ID}}"
35- timeout : ' 15m0s'
36-
37- # update_openapi:
38- # needs: [ deploy ]
39- # runs-on: ubuntu-latest
40- # name: Update OpenAPI
41- # if: ${{ inputs.target == inputs.environment }}
42- # environment: ${{ inputs.environment }}
43- # steps:
44- # - name: Checkout
45- # id: checkout
46- # # from https://github.com/actions/checkout/commits/main
47- # uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707
48- # with:
49- # persist-credentials: false
50- #
51- # - name: Setup Terraform
52- # # from https://github.com/hashicorp/setup-terraform/commits/main
53- # uses: hashicorp/setup-terraform@8feba2b913ea459066180f9cb177f58a881cf146
54- # with:
55- # terraform_version: "1.3.6"
56- #
57- # - name: Login
58- # id: login
59- # # from https://github.com/Azure/login/commits/master
60- # uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2
61- # with:
62- # client-id: ${{ secrets.CD_CLIENT_ID }}
63- # tenant-id: ${{ secrets.TENANT_ID }}
64- # subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
65- #
66- #
67- # - name: Terraform Apply
68- # shell: bash
69- # run: |
70- # cd ./infra
71- # export ARM_CLIENT_ID="${{ secrets.CD_CLIENT_ID }}"
72- # export ARM_SUBSCRIPTION_ID=$(az account show --query id --output tsv)
73- # export ARM_TENANT_ID=$(az account show --query tenantId --output tsv)
74- # export ARM_USE_OIDC=true
75- # export ARM_ACCESS_KEY=$(az storage account keys list --resource-group io-infra-rg --account-name pagopainfraterraform${{inputs.environment}} --query '[0].value' -o tsv)
76- # bash ./terraform.sh init weu-${{ inputs.environment }}
77- # bash ./terraform.sh apply weu-${{ inputs.environment }} -auto-approve
41+ helm_upgrade_options : " --debug --set microservice-chart.azure.workloadIdentityClientId=${{ vars.WORKLOAD_IDENTITY_ID }}"
42+ timeout : ' 15m0s'
0 commit comments