Skip to content

Commit 9c0ea3d

Browse files
committed
👷add docker images workflow
1 parent 800ace2 commit 9c0ea3d

File tree

4 files changed

+188
-0
lines changed

4 files changed

+188
-0
lines changed

.github/workflows/publish-clone.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create and publish Docker image for clone to ghcr.io
2+
3+
on:
4+
release:
5+
types: ['published']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: SAP/clone
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
attestations: write
18+
id-token: write
19+
20+
environment: ghcr:cloud-active-defense
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Log in to the Container registry
27+
uses: docker/[email protected]
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Extract metadata of clone
34+
id: meta
35+
uses: docker/[email protected]
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
39+
- name: Build and push Docker image of clone
40+
id: push
41+
uses: docker/[email protected]
42+
with:
43+
context: ./clone
44+
push: true
45+
file: ./clone/Dockerfile
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create and publish Docker image for configmanager to ghcr.io
2+
3+
on:
4+
release:
5+
types: ['published']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: SAP/configmanager
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
attestations: write
18+
id-token: write
19+
20+
environment: ghcr:cloud-active-defense
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Log in to the Container registry
27+
uses: docker/[email protected]
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Extract metadata of configmanager
34+
id: meta
35+
uses: docker/[email protected]
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
39+
- name: Build and push Docker image of configmanager
40+
id: push
41+
uses: docker/[email protected]
42+
with:
43+
context: ./configmanager
44+
push: true
45+
file: ./configmanager/Dockerfile
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create and publish Docker image for exhaust to ghcr.io
2+
3+
on:
4+
release:
5+
types: ['published']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: SAP/exhaust
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
attestations: write
18+
id-token: write
19+
20+
environment: ghcr:cloud-active-defense
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Log in to the Container registry
27+
uses: docker/[email protected]
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Extract metadata of exhaust
34+
id: meta
35+
uses: docker/[email protected]
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
39+
- name: Build and push Docker image of exhaust
40+
id: push
41+
uses: docker/[email protected]
42+
with:
43+
context: ./exhaust
44+
push: true
45+
file: ./exhaust/Dockerfile
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/publish-proxy.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Create and publish Docker image for kyma_init_ to ghcr.io
2+
3+
on:
4+
release:
5+
types: ['published']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: SAP/proxy
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
attestations: write
18+
id-token: write
19+
20+
environment: ghcr:cloud-active-defense
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Log in to the Container registry
27+
uses: docker/[email protected]
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Extract metadata of proxy
34+
id: meta
35+
uses: docker/[email protected]
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
39+
- name: Build and push Docker image of proxy
40+
id: push
41+
uses: docker/[email protected]
42+
with:
43+
context: ./proxy
44+
push: true
45+
file: ./proxy/Dockerfile
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)