Merge pull request #10 from https-richardy/feature/gateway-proxy #6
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
| name: workflow — trigger production deployment | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: Applications/Backend | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: build solution | |
| run: dotnet build | |
| - name: run tests | |
| run: dotnet test | |
| - name: build docker image | |
| run: docker build -t httpsrichardy/federation:latest . | |
| - name: login docker hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
| - name: push docker image | |
| run: docker push httpsrichardy/federation:latest | |
| - name: deploy webhook | |
| run: curl -X POST ${{ secrets.PRODUCTION_DEPLOY_URL }} |