sig-cloud-instance-images/.github/workflows/build.yml
Neil Hanlon 9009e76f10
Merge imagefactory into main (#7)
* Build images using imagefactory, spawned by Makefile on Gitlab runners weekly on Sundays at 00:00 UTC
* Add details on creating builds to README
* add package diff script
* Don't include architecture in filename, so that it's easier to make images.. The compressed build artifacts are already named with the architecture
2022-03-14 17:22:26 -04:00

39 lines
807 B
YAML

---
name: Build container images
on:
push:
branches: [ $default-branch, imagefactory ]
pull_request:
branches: [ $default-branch ]
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
Run-ImageFactory-Builds:
strategy:
matrix:
architecture:
- x64
- ARM64
runs-on:
- self-hosted
- ${{ matrix.architecture }}
steps:
- name: Checkout sig-cloud-instance-images
uses: actions/checkout@v2
- name: Build images
run: make
- name: Get image name
run: echo "ARTIFACT_NAME=$(make publish)" >> $GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: out/
if-no-files-found: error