mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-20 23:31:22 +00:00
Add matrix to install latest podman version
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
0e2528bfb5
commit
d928cde335
3 changed files with 91 additions and 0 deletions
61
.github/workflows/multiple-build.yaml
vendored
61
.github/workflows/multiple-build.yaml
vendored
|
@ -14,8 +14,24 @@ jobs:
|
||||||
build-only-podman:
|
build-only-podman:
|
||||||
name: Build and push image built only on Podman
|
name: Build and push image built only on Podman
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
|
@ -42,8 +58,23 @@ jobs:
|
||||||
build-only-docker:
|
build-only-docker:
|
||||||
name: Build and push image built only on Docker
|
name: Build and push image built only on Docker
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
|
@ -70,8 +101,23 @@ jobs:
|
||||||
build-podman-latest:
|
build-podman-latest:
|
||||||
name: Build and push image built latest on Podman
|
name: Build and push image built latest on Podman
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
|
@ -105,8 +151,23 @@ jobs:
|
||||||
build-docker-latest:
|
build-docker-latest:
|
||||||
name: Build and push image built latest on Docker
|
name: Build and push image built latest on Docker
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
|
|
15
.github/workflows/verify-login-push.yml
vendored
15
.github/workflows/verify-login-push.yml
vendored
|
@ -17,7 +17,22 @@ jobs:
|
||||||
login-and-push:
|
login-and-push:
|
||||||
name: Login and push image to Quay.io
|
name: Login and push image to Quay.io
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
# Checkout push-to-registry action github repository
|
# Checkout push-to-registry action github repository
|
||||||
- name: Checkout Push to Registry action
|
- name: Checkout Push to Registry action
|
||||||
|
|
15
.github/workflows/verify-push.yaml
vendored
15
.github/workflows/verify-push.yaml
vendored
|
@ -19,7 +19,22 @@ jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
name: Build and push image to Quay.io
|
name: Build and push image to Quay.io
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
run: |
|
||||||
|
. /etc/os-release
|
||||||
|
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||||
|
curl -sSfL "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y upgrade
|
||||||
|
sudo apt-get -y install podman
|
||||||
|
|
||||||
# Checkout push-to-registry action github repository
|
# Checkout push-to-registry action github repository
|
||||||
- name: Checkout Push to Registry action
|
- name: Checkout Push to Registry action
|
||||||
|
|
Loading…
Reference in a new issue