Skip to content

Commit

Permalink
Edit py server action
Browse files Browse the repository at this point in the history
  • Loading branch information
liminalfever committed Mar 13, 2024
1 parent ea9c580 commit 84d57de
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/main_istat-terra-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ name: Terra Python CI/CD

on:
workflow_dispatch:


permissions:
id-token: write
contents: read

jobs:
build:
runs-on: 'ubuntu-latest'
Expand Down Expand Up @@ -47,3 +51,25 @@ jobs:
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_PYTHONSERVICE }}
images: 'istatcosmo.azurecr.io/cosmo-python-service:run-${{ github.run_number }}'

deployaca:
runs-on: ubuntu-latest
needs: build
environment:
name: 'development-aca'

steps:
- name: Azure Login
uses: Azure/login@v1.4.3
with:
client-id: ${{ secrets.AZ_CLIENT_ID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}

- name: Deploy Container App
shell: pwsh
env:
CONTAINERAPP_NAME: ${{ vars.PYTHON_CONTAINERAPP_NAME }}
CONTAINERAPP_RG: ${{ vars.TERRA_RG }}
run: |
az containerapp update --image 'istatcosmo.azurecr.io/cosmo-python-service:run-${{ github.run_number }}' -n $env:CONTAINERAPP_NAME -g $env:CONTAINERAPP_RG

0 comments on commit 84d57de

Please sign in to comment.