Skip to content

Commit ab40a8d

Browse files
committed
containers ci
1 parent 3ce9d30 commit ab40a8d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/master.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
container_images:
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install podman
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install podman
18+
19+
20+
- name: Build database
21+
run: podman build -f containerfiles/database -t cda-postgres
22+
23+
- name: Database artifact
24+
uses: actions/upload-artifact@v6
25+
with:
26+
name: db-image
27+
path: ~/.local/share/containers/${podman images \
28+
--format='{{.Names}} {{.Id}}' | \
29+
grep cda-postgres | \
30+
awk '{ print $2 }'}
31+
}
32+
33+
34+
- name: Build frontend builder
35+
run: podman build -f containerfiles/gateway -t cda-web-builder
36+
37+
- name: Frontend builder artifact
38+
uses: actions/upload-artifact@v6
39+
with:
40+
name: db-image
41+
path: ~/.local/share/containers/${podman images \
42+
--format='{{.Names}} {{.Id}}' | \
43+
grep cda-web-builder | \
44+
awk '{ print $2 }' \
45+
}

0 commit comments

Comments
 (0)