File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : workflow — trigger production deployment
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+
11+ defaults :
12+ run :
13+ working-directory : Applications/Backend
14+
15+ steps :
16+ - name : checkout
17+ uses : actions/checkout@v4
18+
19+ - name : build solution
20+ run : dotnet build HttpsRichardy.Federation.sln
21+
22+ - name : run tests
23+ run : dotnet test HttpsRichardy.Federation.sln
24+
25+ - name : build docker image
26+ run : docker build -t httpsrichardy/federation:latest .
27+
28+ - name : login docker hub
29+ uses : docker/login-action@v3
30+ with :
31+ username : ${{ secrets.DOCKERHUB_USERNAME }}
32+ password : ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+ - name : push docker image
35+ run : docker push httpsrichardy/federation:latest
36+
37+ - name : deploy webhook
38+ run : curl -X POST ${{ secrets.DEPLOY_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments