Merge pull request #164 from ucdavis/srk/goodbye-rsc #128
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
| # TEMP disable while we try out azure devops | |
| # name: Deploy Azure Web App | |
| # on: | |
| # push: | |
| # branches: | |
| # - main | |
| # workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: prod | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Login to Azure | |
| uses: azure/login@v2 | |
| with: | |
| creds: ${{ secrets.AZURE_CREDENTIALS }} | |
| - name: Login to ACR | |
| run: az acr login --name ${{ secrets.ACR_NAME }} | |
| - name: Build Docker image | |
| run: | | |
| docker build -t ${{ secrets.ACR_LOGIN_SERVER }}/policywonk:${{ github.sha }} -f ./web/Dockerfile ./web | |
| docker push ${{ secrets.ACR_LOGIN_SERVER }}/policywonk:${{ github.sha }} | |
| - name: Deploy to Azure Web App for Containers | |
| uses: azure/webapps-deploy@v2 | |
| with: | |
| app-name: "policywonk" | |
| images: "${{ secrets.ACR_LOGIN_SERVER }}/policywonk:${{ github.sha }}" |