11
11
jobs :
12
12
publish :
13
13
name : Build and push Spilo multiarch images
14
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-22.04
15
15
permissions :
16
16
contents : ' read'
17
17
packages : ' write'
@@ -20,15 +20,15 @@ jobs:
20
20
shell : bash
21
21
steps :
22
22
- name : Checkout
23
- uses : actions/checkout@v3
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Set up packages
26
+ run : sudo apt-get install -y docker-compose
24
27
25
28
- name : Set up Python
26
- uses : actions/setup-python@v4
29
+ uses : actions/setup-python@v5
27
30
with :
28
- python-version : 3.7
29
-
30
- - name : Install flake8 and docker-compose
31
- run : python -m pip install flake8 docker-compose==1.17.1
31
+ python-version : ' 3.10'
32
32
33
33
- name : Derive spilo image name
34
34
id : image
@@ -39,20 +39,20 @@ jobs:
39
39
echo "NAME=$IMAGE" >> $GITHUB_OUTPUT
40
40
41
41
- name : Set up QEMU
42
- uses : docker/setup-qemu-action@v2
42
+ uses : docker/setup-qemu-action@v3
43
43
44
44
- name : Set up Docker Buildx
45
- uses : docker/setup-buildx-action@v2
45
+ uses : docker/setup-buildx-action@v3
46
46
47
47
- name : Login to GHCR
48
- uses : docker/login-action@v2
48
+ uses : docker/login-action@v3
49
49
with :
50
50
registry : ${{ env.REGISTRY }}
51
51
username : ${{ github.actor }}
52
52
password : ${{ secrets.GITHUB_TOKEN }}
53
53
54
54
- name : Build and export to local docker for testing
55
- uses : docker/build-push-action@v3
55
+ uses : docker/build-push-action@v6
56
56
with :
57
57
context : " postgres-appliance/"
58
58
load : true
65
65
bash postgres-appliance/tests/test_spilo.sh
66
66
67
67
- name : Build arm64 additionaly and push multiarch image to ghcr
68
- uses : docker/build-push-action@v3
68
+ uses : docker/build-push-action@v6
69
69
with :
70
70
context : " postgres-appliance/"
71
71
push : true
0 commit comments