Fix authentication of query page (#858) #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Deploy To Staging | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
create_pre_release: | |
uses: ./.github/workflows/docker-pre-release.yml | |
permissions: | |
contents: write | |
pull-requests: write | |
packages: write | |
run_staging_deployment: | |
if: github.repository == 'IQEngine/IQEngine' | |
needs: create_pre_release | |
permissions: | |
contents: write | |
pull-requests: write | |
packages: write | |
runs-on: ubuntu-latest | |
environment: | |
name: 'Staging' | |
url: https://staging.iqengine.org | |
env: | |
repository: ${{needs.create_pre_release.outputs.repository}} | |
sha: ${{needs.create_pre_release.outputs.sha}} | |
steps: | |
- name: Log in with Azure with Service Principal | |
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7 | |
with: | |
creds: '${{ secrets.AZURE_CREDENTIALS }}' | |
- name: Build and Deploy Frontend+Backend Container App | |
uses: azure/container-apps-deploy-action@900fbf4c695af15656553e442a65192e797b9dd2 # v1 | |
with: | |
containerAppName: ${{ secrets.AZURE_CONTAINER_APP_NAME }} | |
resourceGroup: ${{ secrets.AZURE_RESOURCEGROUP }} | |
imageToDeploy: ghcr.io/${{ env.repository }}:${{ env.sha}} | |
- name: Build and Deploy Plugins Container App | |
uses: azure/container-apps-deploy-action@900fbf4c695af15656553e442a65192e797b9dd2 # v1 | |
with: | |
containerAppName: ${{ secrets.AZURE_CONTAINER_APP_NAME_STAGING_PLUGINS }} | |
resourceGroup: ${{ secrets.AZURE_RESOURCEGROUP }} | |
imageToDeploy: ghcr.io/${{ env.repository }}-plugins:${{ env.sha}} |