mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-19 00:41:23 +00:00
Add matrix to install latest buildah (#67)
* Add matrix to install latest buildah Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
b82756135c
commit
fe5edd5859
4 changed files with 34 additions and 0 deletions
7
.github/install_latest_buildah.sh
vendored
Normal file
7
.github/install_latest_buildah.sh
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# https://github.com/containers/buildah/blob/main/install.md
|
||||||
|
. /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
|
10
.github/workflows/dockerfile_build.yml
vendored
10
.github/workflows/dockerfile_build.yml
vendored
|
@ -16,6 +16,11 @@ 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:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
|
@ -24,6 +29,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash buildah-build/.github/install_latest_buildah.sh
|
||||||
|
|
||||||
- name: Create Dockerfile
|
- name: Create Dockerfile
|
||||||
run: |
|
run: |
|
||||||
cat > Dockerfile<<EOF
|
cat > Dockerfile<<EOF
|
||||||
|
|
7
.github/workflows/multiarch.yml
vendored
7
.github/workflows/multiarch.yml
vendored
|
@ -18,6 +18,8 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch: [ amd64, i386, arm64v8 ]
|
arch: [ amd64, i386, arm64v8 ]
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
|
@ -26,6 +28,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash buildah-build/.github/install_latest_buildah.sh
|
||||||
|
|
||||||
- name: Install qemu dependency
|
- name: Install qemu dependency
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
10
.github/workflows/scratch_build.yml
vendored
10
.github/workflows/scratch_build.yml
vendored
|
@ -18,6 +18,11 @@ 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:
|
||||||
|
|
||||||
# Checkout buildah action github repository
|
# Checkout buildah action github repository
|
||||||
|
@ -26,6 +31,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: "buildah-build"
|
path: "buildah-build"
|
||||||
|
|
||||||
|
- name: Install latest buildah
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash buildah-build/.github/install_latest_buildah.sh
|
||||||
|
|
||||||
# Checkout spring-petclinic github repository
|
# Checkout spring-petclinic github repository
|
||||||
- name: Checkout spring-petclinic project
|
- name: Checkout spring-petclinic project
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in a new issue