Skip to content

Commit 40603a7

Browse files
feat: this commit introduces production deployment workflow
1 parent 5231f52 commit 40603a7

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 }}

0 commit comments

Comments
 (0)