Skip to content

Commit 57fe9b6

Browse files
committed
fix/push docker image (#1154)
* fix: used single yml file using matrix instead of multiple files Signed-off-by: [email protected] <[email protected]> * fix: renamed yml file to cicd.yml Signed-off-by: [email protected] <[email protected]> * fix: renamed yml file Signed-off-by: [email protected] <[email protected]> * fix: renamed yml file Signed-off-by: [email protected] <[email protected]> * chore: removed id-token and attestations Signed-off-by: [email protected] <[email protected]> --------- Signed-off-by: [email protected] <[email protected]> Signed-off-by: Sahil Kamble <[email protected]>
1 parent ce43162 commit 57fe9b6

13 files changed

+60
-660
lines changed

.github/workflows/agent-provisioning.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/agent-service.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/api-gateway.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/cloud-wallet.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Continuous Delivery
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
REGISTRY: ghcr.io
10+
11+
jobs:
12+
build-and-push:
13+
name: Push Docker image to GitHub
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
service:
19+
- agent-provisioning
20+
- agent-service
21+
- api-gateway
22+
- cloud-wallet
23+
- connection
24+
- geolocation
25+
- issuance
26+
- ledger
27+
- notification
28+
- user
29+
- utility
30+
- verification
31+
- webhook
32+
33+
permissions:
34+
contents: read
35+
packages: write
36+
37+
steps:
38+
- name: Checkout Repository
39+
uses: actions/checkout@v4
40+
41+
- name: Extract Git Tag
42+
id: get_tag
43+
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
44+
45+
- name: Log in to GitHub Container Registry
46+
uses: docker/login-action@v3
47+
with:
48+
registry: ghcr.io
49+
username: ${{ github.actor }}
50+
password: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: Build and Push Docker Image ${{ matrix.service }}
53+
uses: docker/build-push-action@v6
54+
with:
55+
context: .
56+
file: Dockerfiles/Dockerfile.${{ matrix.service }}
57+
push: true
58+
tags: |
59+
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:${{ env.TAG }}
60+
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.service }}:latest

.github/workflows/geolocation.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)