mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-11-10 15:11:24 +00:00
Neil Hanlon
9009e76f10
* 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
39 lines
807 B
YAML
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
|