Skip to content

Commit

Permalink
[PAGOPA-1176] chore: Enable staging in uat env
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-ang committed Sep 14, 2023
1 parent f0f2b9f commit abaa184
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ jobs:

- name: Azure CLI script
uses: azure/CLI@v1
if: ${{ contains(github.event.inputs.environment, 'prod') }}
if: ${{ contains(github.event.inputs.environment, 'prod') || contains(github.event.inputs.environment, 'uat') }}
env:
ENV_SHORT: 'p'
RESOURCE_GROUP: 'pagopa-p-weu-gps-gpd-rg'
ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') || (contains(github.event.inputs.environment, 'uat') && 'u') }}
RESOURCE_GROUP: 'pagopa-${{ env.ENV_SHORT }}-weu-gps-gpd-rg'
with:
inlineScript: |
az functionapp start --name pagopa-${{ env.ENV_SHORT }}-weu-fn-gpd-batch --resource-group ${{ env.RESOURCE_GROUP }} --slot staging
Expand Down Expand Up @@ -195,8 +195,8 @@ jobs:
uses: azure/CLI@v1
if: ${{ contains(github.event.inputs.environment, 'prod') }}
env:
ENV_SHORT: 'p'
RESOURCE_GROUP: 'pagopa-p-weu-gps-gpd-rg'
ENV_SHORT: ${{ (contains(github.event.inputs.environment,'prod') && 'p') || (contains(github.event.inputs.environment, 'uat') && 'u') }}
RESOURCE_GROUP: 'pagopa-${{ env.ENV_SHORT }}-weu-gps-gpd-rg'
with:
inlineScript: |
az functionapp stop --name pagopa-${{ env.ENV_SHORT }}-weu-fn-gpd-batch --resource-group ${{ env.RESOURCE_GROUP }} --slot staging
Expand Down

0 comments on commit abaa184

Please sign in to comment.