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+ quality-assurance:
9+ uses: ./.github/workflows/reusable-quality-assurance.yml
10+ with:
11+ service_path: Applications/Backend
12+
13+ deploy:
14+ needs: quality-assurance
15+ runs-on: ubuntu-latest
16+
17+ defaults:
18+ run:
19+ working-directory: Applications/Backend
20+
21+ steps:
22+ - name: checkout
23+ uses: actions/checkout@v4
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