This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
Main pipeline #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main pipeline | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 6 * * 0' | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
ARCH: ['x86_64', 'i386'] | |
DIST: ['centos7'] | |
include: | |
- ARCH: 'aarch64' | |
DIST: 'bionic' | |
- ARCH: 'armhf' | |
DIST: 'bionic' | |
- ARCH: 'x86_64' | |
DIST: 'bionic' | |
name: Build ${{ matrix.DIST }} (${{ matrix.ARCH }}) | |
env: | |
DIST: ${{ matrix.DIST }} | |
ARCH: ${{ matrix.ARCH }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU integration for Docker | |
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | |
- name: Build and upload Docker image | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin quay.io | |
bash -ex build.sh --pull --push |