File tree 2 files changed +44
-8
lines changed
2 files changed +44
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ pull_request :
7
+ branches : ["main"]
8
+
9
+ jobs :
10
+ build-push-images :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Log in to GHCR
16
+ uses : docker/login-action@v3
17
+ with :
18
+ registry : ghcr.io
19
+ username : ${{ github.actor }}
20
+ password : ${{ secrets.GITHUB_TOKEN }}
21
+ - name : " Tasks API: Build and push Docker image"
22
+ uses : docker/build-push-action@v6
23
+ with :
24
+ push : ${{ github.event_name != 'pull_request' }}
25
+ context : backend/tasks
26
+ tags : |
27
+ ghcr.io/${{ github.repository }}/tasks:latest
28
+ ghcr.io/${{ github.repository }}/tasks:${{ github.sha }}
29
+ - name : " Frontend: Build and push Docker image"
30
+ uses : docker/build-push-action@v6
31
+ with :
32
+ push : ${{ github.event_name != 'pull_request' }}
33
+ context : frontend
34
+ tags : |
35
+ ghcr.io/${{ github.repository }}/frontend:latest
36
+ ghcr.io/${{ github.repository }}/frontend:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments