-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.65 KB
/
promote-to-beta.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Promote to beta
on:
workflow_dispatch:
jobs:
promote_to_latest:
runs-on: ubuntu-latest
name: Promote from develop to beta
strategy:
fail-fast: false
matrix:
name: [
'aio-apache',
'aio-borgbackup',
'aio-collabora',
'aio-domaincheck',
'all-in-one',
'aio-nextcloud',
'aio-notify-push',
'aio-postgresql',
'aio-redis',
'aio-talk',
'aio-watchtower',
'aio-clamav',
'aio-onlyoffice',
'aio-imaginary',
'aio-talk-recording',
'aio-fulltextsearch',
'aio-docker-socket-proxy',
'aio-whiteboard']
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Promote images from develop to beta (create multiarch)
run: |
set -x
AIO_NAME=${{ matrix.name }}
set +x
if [ "$AIO_NAME" != "aio-clamav" ]; then
# create multiarch image
docker buildx imagetools create --tag nextcloud/$AIO_NAME\:beta nextcloud/$AIO_NAME\:develop nextcloud/$AIO_NAME\:develop-arm64
# arm64
docker buildx imagetools create --tag nextcloud/$AIO_NAME\:beta-arm64 nextcloud/$AIO_NAME\:develop nextcloud/$AIO_NAME\:develop-arm64
else
# amd64
docker buildx imagetools create --tag nextcloud/$AIO_NAME\:beta nextcloud/$AIO_NAME\:develop
fi