Build images #84
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: Build images | |
on: | |
workflow_dispatch: # manual trigger | |
schedule: | |
# 4AM every monday, matches upstream weekly builds on sunday | |
- cron: "0 4 * * MON" | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
packages: write | |
env: | |
IMAGE: ${{ github.repository_owner }}/toolbx-images | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
max-parallel: 1 # dont run these concurrently so zed picks up the new arch image | |
matrix: | |
tag: | |
- arch | |
- ubuntu | |
- zed | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Build Image | |
id: build_image | |
uses: redhat-actions/buildah-build@main | |
with: | |
image: ${{ env.IMAGE }} | |
tags: ${{ matrix.tag }} | |
context: ${{ matrix.tag }} | |
containerfiles: ./${{ matrix.tag }}/Containerfile | |
- name: Push To GHCR | |
uses: redhat-actions/push-to-registry@main | |
id: push-ghcr | |
with: | |
registry: ghcr.io | |
image: ${{ steps.build_image.outputs.image }} | |
tags: ${{ steps.build_image.outputs.tags }} | |
username: ${{ github.actor }} | |
password: ${{ github.token }} |