2022-06-17 21:56:08 +00:00
|
|
|
---
|
2022-07-05 01:18:39 +00:00
|
|
|
name: Build empanada container images for lorax
|
2022-06-17 21:56:08 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-06-28 14:10:30 +00:00
|
|
|
branches: [ $default-branch, "devel" ]
|
2022-06-17 21:56:08 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ $default-branch ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildx:
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
2023-11-11 17:23:24 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2022-06-17 21:56:08 +00:00
|
|
|
# https://github.com/docker/setup-buildx-action
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2023-11-11 17:23:24 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2022-06-17 21:56:08 +00:00
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: Login to ghcr
|
|
|
|
if: github.event_name != 'pull_request'
|
2023-11-11 17:23:24 +00:00
|
|
|
uses: docker/login-action@v3
|
2022-06-17 21:56:08 +00:00
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
id: docker_build
|
2023-11-11 17:23:24 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2022-06-17 21:56:08 +00:00
|
|
|
with:
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
|
|
|
|
context: ./iso/empanadas
|
2022-07-05 01:15:47 +00:00
|
|
|
file: ./iso/empanadas/Containerfile
|
2022-06-17 21:56:08 +00:00
|
|
|
push: ${{ github.event_name != 'pull_request' }}
|
2022-07-05 01:15:47 +00:00
|
|
|
tags: ghcr.io/rocky-linux/sig-core-toolkit:latest
|
2022-06-17 21:56:08 +00:00
|
|
|
cache-from: type=gha
|
|
|
|
cache-to: type=gha,mode=max
|