Fix bug #143
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login to ACR | |
uses: azure/docker-login@v1 | |
with: | |
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Build and push image | |
run: | | |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/prodeko-org/prodeko-org | |
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/prodeko-org/prodeko-org | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker login to ACR | |
uses: azure/docker-login@v1 | |
with: | |
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Deploy project | |
uses: ./.github/workflows/deploy | |
- name: Upload release to Sentry | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_URL: https://sentry.prodeko.org/ | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: prodeko | |
SENTRY_PROJECT: prodeko-org | |
with: | |
environment: production |