Fixing manifest icon image fallback #95
This file contains hidden or 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
| # This GitHub Action workflow runs on checkin to main branch. | |
| # It pushes the changes to the pwabuilder\cloudapk-prod repository in ACR. | |
| # It then deploys the container app to the Azure Web App's staging slot. | |
| name: Deploy Google Play packager to staging | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "apps/pwabuilder-google-play/**" | |
| - ".github/workflows/deploy-google-play-to-preview.yml" | |
| workflow_dispatch: null | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login with Azure CLI | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_WESTUS_APP_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Log in to Azure docker registry (ACR) | |
| run: az acr login --name pwabuilder | |
| - name: Docker build | |
| run: docker build -f apps/pwabuilder-google-play/Dockerfile apps/pwabuilder-google-play -t pwabuilder.azurecr.io/pwabuilder/cloudapk-prod:latest | |
| - name: Docker push | |
| run: docker push pwabuilder.azurecr.io/pwabuilder/cloudapk-prod:latest | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| needs: build | |
| environment: | |
| name: staging | |
| url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} | |
| steps: | |
| - name: Login with Azure CLI | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CENTRALUS_APP_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Deploy to Azure Web App | |
| id: deploy-to-webapp | |
| uses: azure/webapps-deploy@v2 | |
| with: | |
| app-name: pwabuilder-cloudapk | |
| slot-name: staging | |
| images: pwabuilder.azurecr.io/pwabuilder/cloudapk-prod:latest |