Added GitHub workflow for CI

This commit is contained in:
Héctor Molinero Fernández 2022-02-08 23:39:47 +01:00
parent 900242aa90
commit 013512b665

25
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: 'CI'

on:
push:
tags: ['*']
branches: ['*']
pull_request:
branches: ['*']
workflow_dispatch:

jobs:

build:
name: 'Build ${{ matrix.arch }} image'
runs-on: 'ubuntu-latest'
strategy:
matrix:
arch: ['amd64', 'arm64v8', 'arm32v7']
steps:
- name: 'Checkout project'
uses: 'actions/checkout@v1'
- name: 'Build image'
run: |
make binfmt-register
make IMAGE_BUILD_OPTS="--pull" "build-${{ matrix.arch }}-image"