-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.78 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
58
59
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']
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 manifest create nextcloud/$AIO_NAME\:beta -a nextcloud/$AIO_NAME\:develop -a nextcloud/$AIO_NAME\:develop-arm64
docker manifest push nextcloud/$AIO_NAME\:beta
# arm64
docker manifest create nextcloud/$AIO_NAME\:beta-arm64 -a nextcloud/$AIO_NAME\:develop -a nextcloud/$AIO_NAME\:develop-arm64
docker manifest push nextcloud/$AIO_NAME\:beta-arm64
else
# amd64
docker manifest create nextcloud/$AIO_NAME\:beta -a nextcloud/$AIO_NAME\:develop
docker manifest push nextcloud/$AIO_NAME\:beta
fi