File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous Delivery
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - feat/push-docker-image
7
+
8
+ env :
9
+ REGISTRY : ghcr.io
10
+ TAG : v2.0.0
11
+
12
+ jobs :
13
+ build-and-push :
14
+ name : Push Docker image to GitHub
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ service :
20
+ - agent-provisioning
21
+ - agent-service
22
+ - api-gateway
23
+ - cloud-wallet
24
+ - connection
25
+ - geolocation
26
+ - issuance
27
+ - ledger
28
+ - notification
29
+ - user
30
+ - utility
31
+ - verification
32
+ - webhook
33
+
34
+ permissions :
35
+ contents : read
36
+ packages : write
37
+
38
+ steps :
39
+ - name : Checkout Repository
40
+ uses : actions/checkout@v4
41
+
42
+ - name : Log in to GitHub Container Registry
43
+ uses : docker/login-action@v3
44
+ with :
45
+ registry : ghcr.io
46
+ username : ${{ github.actor }}
47
+ password : ${{ secrets.GITHUB_TOKEN }}
48
+
49
+ - name : Build and Push Docker Image ${{ matrix.service }}
50
+ uses : docker/build-push-action@v6
51
+ with :
52
+ context : .
53
+ file : Dockerfiles/Dockerfile.${{ matrix.service }}
54
+ push : true
55
+ tags : |
56
+ ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:${{ env.TAG }}
57
+ ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:latest
You can’t perform that action at this time.
0 commit comments