forked from CentOS/centos-bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1001 Bytes
/
builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: builder
on:
push:
paths:
- builder/**
pull_request:
branches:
- main
paths:
- builder/**
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/builder
jobs:
build-image:
runs-on: ubuntu-latest
steps:
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Checkout repository
uses: actions/checkout@v3
- name: Login
run: buildah login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
- name: Build
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
containerfiles: ./builder/Containerfile
archs: s390x, arm64, amd64, ppc64le
oci: true
context: builder
- name: Push
run: buildah push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}