-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (37 loc) · 1.66 KB
/
actions.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
name: actions
on:
push:
schedule:
- cron: '0 0 * * 0'
jobs:
alpine:
runs-on: ubuntu-latest
strategy:
matrix:
QEMU_VER: [v6.1.0-1]
DOCKER_REPO: [docker.io/multiarch/alpine]
LATEST_VERSION: [v3.14]
VERSION: [v3.11, v3.12, v3.13, v3.14, edge]
TAG_ARCH: [x86, x86_64, i386, amd64, armhf, aarch64, arm64, armv7, ppc64le, s390x]
include:
- {ARCH: x86, QEMU_ARCH: i386, TAG_ARCH: x86}
- {ARCH: x86_64, QEMU_ARCH: x86_64, TAG_ARCH: x86_64}
- {ARCH: x86, QEMU_ARCH: i386, TAG_ARCH: i386}
- {ARCH: x86_64, QEMU_ARCH: x86_64, TAG_ARCH: amd64}
- {ARCH: armhf, QEMU_ARCH: arm, TAG_ARCH: armhf}
- {ARCH: aarch64, QEMU_ARCH: aarch64, TAG_ARCH: aarch64}
- {ARCH: aarch64, QEMU_ARCH: aarch64, TAG_ARCH: arm64}
- {ARCH: armv7, QEMU_ARCH: arm, TAG_ARCH: armv7}
- {ARCH: ppc64le, QEMU_ARCH: ppc64le, TAG_ARCH: ppc64le}
- {ARCH: s390x, QEMU_ARCH: s390x, TAG_ARCH: s390x}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends qemu-user-static
sudo ./update.sh -a ${{ matrix.ARCH }} -v ${{ matrix.VERSION }} -q ${{ matrix.QEMU_ARCH }} -u ${{ matrix.QEMU_VER }} -d ${{ matrix.DOCKER_REPO }} -t ${{ matrix.TAG_ARCH }} -l ${{ matrix.LATEST_VERSION }}
- name: Publish
if: github.ref == 'refs/heads/master'
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
docker push -a ${{ matrix.DOCKER_REPO }}