Migrate builder source files to centos/centos-boot-infra
This commit is contained in:
parent
4c97cbd613
commit
8126691ac7
4 changed files with 0 additions and 77 deletions
41
.github/workflows/builder.yml
vendored
41
.github/workflows/builder.yml
vendored
|
|
@ -1,41 +0,0 @@
|
|||
name: builder
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/builder.yml
|
||||
- builder/**
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
QUAY_ORG: centos-boot
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: echo IMAGE=${{ env.REGISTRY }}/$(echo ${{ github.repository_owner }}/builder | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
|
||||
- name: Install qemu dependency
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y qemu-user-static
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- name: Login to ghcr.io
|
||||
run: buildah login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
|
||||
- name: Login to quay.io
|
||||
run: buildah login --username ${{ secrets.QUAY_USER }} --password ${{ secrets.QUAY_PASSWORD }} quay.io
|
||||
- name: Build
|
||||
uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12
|
||||
with:
|
||||
image: ${{ env.IMAGE }}
|
||||
tags: latest
|
||||
containerfiles: ./builder/Containerfile
|
||||
archs: s390x, arm64, amd64, ppc64le
|
||||
context: builder
|
||||
- name: Push to ghcr.io
|
||||
run: buildah manifest push --all ${{ env.IMAGE }} docker://${{ env.IMAGE }}
|
||||
- name: Push To quay.io
|
||||
run: buildah manifest push --all ${{ env.IMAGE }} docker://quay.io/${{ env.QUAY_ORG }}/builder
|
||||
Loading…
Add table
Add a link
Reference in a new issue