fix: prevent the GetUsers API from producing giant responses #48
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: Main | |
on: | |
push: | |
branches: | |
- main | |
env: | |
IMAGE_TAG: ${{ github.sha }} | |
REGISTRY_USERNAME: prereview | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: 'Checkout code' | |
uses: actions/checkout@v2 | |
- name: 'Log in to Azure' | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: 'Deploy app' | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'prereview2' | |
slot-name: 'staging' | |
images: prereview.azurecr.io/prereview:${{ env.IMAGE_TAG }} | |
configuration-file: './deploy/docker-compose.yml' | |
tag: | |
runs-on: ubuntu-20.04 | |
needs: deploy | |
continue-on-error: true | |
steps: | |
- name: 'Tag as latest' | |
uses: tinact/[email protected] | |
with: | |
image_name: 'prereview' | |
image_old_tag: ${{ env.IMAGE_TAG }} | |
image_new_tag: 'latest' | |
registry: 'prereview.azurecr.io' | |
registry_username: ${{ env.REGISTRY_USERNAME }} | |
registry_password: ${{ secrets.REGISTRY_PASSWORD }} |