Skip to content

actions

actions #65

Workflow file for this run

name: actions
on:
push:
schedule:
- cron: '0 0 * * 0'
jobs:
ubuntu-core:
runs-on: ubuntu-latest
strategy:
matrix:
QEMU_VER: [v6.1.0-5]
DOCKER_REPO: [docker.io/multiarch/ubuntu-core]
VERSION: [trusty, xenial, bionic, focal, hirsute]
UNAME_ARCH: [x86_64, arm64, armhf, i386, ppc64el, s390x]
include:
- {ARCH: amd64, QEMU_ARCH: x86_64, UNAME_ARCH: x86_64}
- {ARCH: arm64, QEMU_ARCH: aarch64, UNAME_ARCH: arm64}
- {ARCH: armhf, QEMU_ARCH: arm, UNAME_ARCH: armhf}
- {ARCH: i386, QEMU_ARCH: i386, UNAME_ARCH: i386}
- {ARCH: ppc64el, QEMU_ARCH: ppc64, UNAME_ARCH: ppc64el}
- {ARCH: s390x, QEMU_ARCH: s390x, UNAME_ARCH: s390x}
exclude:
- {VERSION: trusty, UNAME_ARCH: s390x}
- {VERSION: xenial, UNAME_ARCH: s390x}
- {VERSION: focal, UNAME_ARCH: i386}
- {VERSION: hirsute, UNAME_ARCH: i386}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu focal main universe'
sudo apt-get update && sudo apt-get install -y 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.UNAME_ARCH }}
- 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 }}