Skip to content

Commit

Permalink
builder: Add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Nov 4, 2023
1 parent 53c3622 commit 8da1cd9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: builder

on:
push:
pull_request:
branches:
- main

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/builder

jobs:
build-image:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login
run: buildah login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
- name: Build
id: build_image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
archs: amd64, ppc64le, s390x, arm64
oci: true
context: builder
- name: Push
run: buildah push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

0 comments on commit 8da1cd9

Please sign in to comment.