Skip to content

Commit 9fbc6d4

Browse files
KambleSahil3ankita-p17
authored andcommitted
feat: created yml file for tag v2.0.0
Signed-off-by: [email protected] <[email protected]> Signed-off-by: Ankita Patidar <[email protected]>
1 parent 7673ea8 commit 9fbc6d4

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/cicd.yml

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

0 commit comments

Comments
 (0)