Skip to content

Commit

Permalink
Fix buildah bud arch
Browse files Browse the repository at this point in the history
  • Loading branch information
containerscrew committed Mar 29, 2024
1 parent 88f89ef commit 96014ff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Build 📦

on:
push:
branches:
- '*'
# branches:
# - '*'
tags:
- 'v*.*.*'

env:
platform_arch: linux/arm64,linux/amd64
buildah_format: "docker"
#IMAGE_TAG: ${{ github.sha }}
REGISTRY: docker.io
Expand Down Expand Up @@ -43,11 +42,9 @@ jobs:
# You can also use official github action from redhat: redhat-actions/buildah-build@v2
- name: Buildah multiarch
run: |
uname -m
buildah manifest create multiarch
buildah bud --jobs=0 --layers --arch amd64 --manifest multiarch --format=docker -f Containerfile .
buildah bud --jobs=0 --layers --arch arm64 --manifest multiarch --format=docker -f Containerfile .
buildah manifest inspect localhost/multiarch
buildah manifest push --all localhost/multiarch docker://docker.io/containerscrew/infratools:v1.0.0
buildah manifest push --all localhost/multiarch docker://$REPOSITORY:$IMAGE_TAG
buildah manifest rm localhost/multiarch
buildah logout $REGISTRY

0 comments on commit 96014ff

Please sign in to comment.