mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
Add matrix to install latest buildah
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
b82756135c
commit
0ce4cc103e
3 changed files with 42 additions and 0 deletions
15
.github/workflows/dockerfile_build.yml
vendored
15
.github/workflows/dockerfile_build.yml
vendored
|
@ -16,7 +16,22 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build image using Buildah
|
name: Build image using Buildah
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://github.com/containers/buildah/blob/main/install.md
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${ID^}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
|
||||||
|
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${ID^}_${VERSION_ID}/Release.key -O Release.key
|
||||||
|
sudo apt-key add - < Release.key
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get -qq -y install buildah
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
|
|
12
.github/workflows/multiarch.yml
vendored
12
.github/workflows/multiarch.yml
vendored
|
@ -18,7 +18,19 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch: [ amd64, i386, arm64v8 ]
|
arch: [ amd64, i386, arm64v8 ]
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://github.com/containers/buildah/blob/main/install.md
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${ID^}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
|
||||||
|
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${ID^}_${VERSION_ID}/Release.key -O Release.key
|
||||||
|
sudo apt-key add - < Release.key
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get -qq -y install buildah
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
|
|
15
.github/workflows/scratch_build.yml
vendored
15
.github/workflows/scratch_build.yml
vendored
|
@ -18,7 +18,22 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build image using Buildah
|
name: Build image using Buildah
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://github.com/containers/buildah/blob/main/install.md
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/x${ID^}_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
|
||||||
|
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/x${ID^}_${VERSION_ID}/Release.key -O Release.key
|
||||||
|
sudo apt-key add - < Release.key
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get -qq -y install buildah
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
- name: Checkout Buildah action
|
- name: Checkout Buildah action
|
||||||
|
|
Loading…
Reference in a new issue