8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- build :
11
+ build-amd64 :
12
12
runs-on : ubuntu-latest
13
-
14
13
strategy :
15
14
fail-fast : false
16
15
matrix :
17
- platform : [
18
- {arch: 'linux/amd64', tag: 'develop'},
19
- {arch: 'linux/arm64', tag: 'develop-arm64'}]
20
16
container : [
21
17
{name: 'aio-apache', context: './Containers/apache'},
22
18
{name: 'aio-borgbackup', context: './Containers/borgbackup'},
@@ -35,41 +31,62 @@ jobs:
35
31
{name: 'aio-talk-recording', context: './Containers/talk-recording'},
36
32
{name: 'aio-fulltextsearch', context: './Containers/fulltextsearch'},
37
33
{name: 'aio-docker-socket-proxy', context: './Containers/docker-socket-proxy'},
38
- {name: 'aio-whiteboard', context: './Containers/whiteboard'}]
39
- exclude :
40
- - platform : {arch: 'linux/arm64', tag: 'develop-arm64'}
41
- container : {name: 'aio-clamav', context: './Containers/clamav'}
42
-
34
+ {name: 'aio-whiteboard', context: './Containers/whiteboard'}
35
+ ]
43
36
steps :
44
37
- name : Check out the repo
45
38
uses : actions/checkout@v3
46
-
47
- - name : Set up QEMU
48
- uses : docker/setup-qemu-action@v2
49
-
50
- - name : Set up Docker Buildx
51
- uses : docker/setup-buildx-action@v2
52
-
53
39
- name : Login to DockerHub
54
40
uses : docker/login-action@v2
55
41
with :
56
42
username : ${{ secrets.DOCKERHUB_USERNAME }}
57
43
password : ${{ secrets.DOCKERHUB_TOKEN }}
58
-
59
- - name : Docker metadata
60
- id : metadata
61
- uses : docker/metadata-action@v4
44
+ - name : Build docker image and push to dockerhub
45
+ uses : docker/build-push-action@v4
62
46
with :
63
- images : |
64
- nextcloud/${{ matrix.container.name }}
65
- tags : |
66
- ${{ matrix.platform.tag }}
67
-
47
+ context : ${{ matrix.container.context }}
48
+ platforms : linux/amd64
49
+ no-cache : true
50
+ push : true
51
+ tags : nextcloud/${{ matrix.container.name }}:develop
52
+
53
+ build-arm64 :
54
+ runs-on : ubuntu-24.04-arm
55
+ strategy :
56
+ fail-fast : false
57
+ matrix :
58
+ container : [
59
+ {name: 'aio-apache', context: './Containers/apache'},
60
+ {name: 'aio-borgbackup', context: './Containers/borgbackup'},
61
+ {name: 'aio-collabora', context: './Containers/collabora'},
62
+ {name: 'aio-domaincheck', context: './Containers/domaincheck'},
63
+ {name: 'all-in-one', context: './Containers/mastercontainer'},
64
+ {name: 'aio-nextcloud', context: './Containers/nextcloud'},
65
+ {name: 'aio-notify-push', context: './Containers/notify-push'},
66
+ {name: 'aio-postgresql', context: './Containers/postgresql'},
67
+ {name: 'aio-redis', context: './Containers/redis'},
68
+ {name: 'aio-talk', context: './Containers/talk'},
69
+ {name: 'aio-watchtower', context: './Containers/watchtower'},
70
+ {name: 'aio-onlyoffice', context: './Containers/onlyoffice'},
71
+ {name: 'aio-imaginary', context: './Containers/imaginary'},
72
+ {name: 'aio-talk-recording', context: './Containers/talk-recording'},
73
+ {name: 'aio-fulltextsearch', context: './Containers/fulltextsearch'},
74
+ {name: 'aio-docker-socket-proxy', context: './Containers/docker-socket-proxy'},
75
+ {name: 'aio-whiteboard', context: './Containers/whiteboard'}
76
+ ]
77
+ steps :
78
+ - name : Check out the repo
79
+ uses : actions/checkout@v3
80
+ - name : Login to DockerHub
81
+ uses : docker/login-action@v2
82
+ with :
83
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
84
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
68
85
- name : Build docker image and push to dockerhub
69
86
uses : docker/build-push-action@v4
70
87
with :
71
88
context : ${{ matrix.container.context }}
72
- platforms : ${{matrix.platform.arch}}
89
+ platforms : linux/arm64
73
90
no-cache : true
74
91
push : true
75
- tags : ${{ steps.metadata.outputs.tags }}
92
+ tags : nextcloud/ ${{ matrix.container.name }}:develop-arm64
0 commit comments