Skip to content

Commit

Permalink
Merge pull request #93 from IBM/arm-build
Browse files Browse the repository at this point in the history
Musl image with ARM support
  • Loading branch information
No9 authored May 28, 2022
2 parents e972a26 + 40af24e commit 93c7def
Show file tree
Hide file tree
Showing 9 changed files with 2,258 additions and 237 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/buildmusl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build and Push musl

on:
push:
branches:
- arm-build
tags:
- 'v*'

env:
IMAGE_NAME: core-dump-handler-musl
IMAGE_TAGS: arm-build ${{ github.sha }}
IMAGE_REGISTRY: quay.io
IMAGE_NAMESPACE: icdh

jobs:
push-quay:
name: Build and push manifest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
arch: [ amd64, arm64 ]

steps:
# Checkout push-to-registry action github repository
- name: Checkout Push to Registry action
uses: actions/checkout@v2

- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@main
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
arch: ${{ matrix.arch }}
build-args: ARCH=${{ matrix.arch }}
containerfiles: |
./musl.Dockerfile
# Push the image manifest to Quay.io (Image Registry)
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
id: push
with:
image: ${{ steps.build_image.outputs.image }}
tags: ${{ steps.build_image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Echo outputs
run: |
echo "${{ toJSON(steps.push.outputs) }}"
Loading

0 comments on commit 93c7def

Please sign in to comment.