mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-02-22 18:21:20 +01:00
Add matrix to install latest podman version (#44)
* Add matrix to install latest podman version Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
0e2528bfb5
commit
85f9459926
4 changed files with 79 additions and 4 deletions
7
.github/install_latest_podman.sh
vendored
Normal file
7
.github/install_latest_podman.sh
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# https://podman.io/getting-started/installation
|
||||||
|
. /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
|
56
.github/workflows/multiple-build.yaml
vendored
56
.github/workflows/multiple-build.yaml
vendored
|
@ -14,9 +14,21 @@ 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:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
run: |
|
run: |
|
||||||
|
@ -42,9 +54,21 @@ 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:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -70,9 +94,21 @@ 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:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -105,9 +141,21 @@ 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:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
run: |
|
run: |
|
||||||
|
|
10
.github/workflows/verify-login-push.yml
vendored
10
.github/workflows/verify-login-push.yml
vendored
|
@ -17,12 +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:
|
||||||
|
|
||||||
# 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
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Create Dockerfile
|
- name: Create Dockerfile
|
||||||
run: |
|
run: |
|
||||||
cat > Dockerfile<<EOF
|
cat > Dockerfile<<EOF
|
||||||
|
|
10
.github/workflows/verify-push.yaml
vendored
10
.github/workflows/verify-push.yaml
vendored
|
@ -19,6 +19,11 @@ 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:
|
||||||
|
|
||||||
# Checkout push-to-registry action github repository
|
# Checkout push-to-registry action github repository
|
||||||
|
@ -27,6 +32,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: "push-to-registry"
|
path: "push-to-registry"
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash push-to-registry/.github/install_latest_podman.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…
Add table
Reference in a new issue