mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-20 23:31:22 +00:00
Add podman latest version installation script in seperate file
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
d928cde335
commit
ccbb4f03e2
4 changed files with 42 additions and 58 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
|
61
.github/workflows/multiple-build.yaml
vendored
61
.github/workflows/multiple-build.yaml
vendored
|
@ -19,20 +19,16 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
install_latest: [ true, false ]
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install latest podman
|
- name: Install latest podman
|
||||||
if: matrix.install_latest
|
if: matrix.install_latest
|
||||||
# https://podman.io/getting-started/installation
|
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
bash .github/install_latest_podman.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
run: |
|
run: |
|
||||||
|
@ -64,18 +60,15 @@ jobs:
|
||||||
install_latest: [ true, false ]
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install latest podman
|
- name: Install latest podman
|
||||||
if: matrix.install_latest
|
if: matrix.install_latest
|
||||||
# https://podman.io/getting-started/installation
|
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
bash .github/install_latest_podman.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -107,18 +100,15 @@ jobs:
|
||||||
install_latest: [ true, false ]
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install latest podman
|
- name: Install latest podman
|
||||||
if: matrix.install_latest
|
if: matrix.install_latest
|
||||||
# https://podman.io/getting-started/installation
|
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
bash .github/install_latest_podman.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Build image using Docker
|
- name: Build image using Docker
|
||||||
run: |
|
run: |
|
||||||
|
@ -157,18 +147,15 @@ jobs:
|
||||||
install_latest: [ true, false ]
|
install_latest: [ true, false ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
# Checkout push-to-registry action github repository
|
||||||
|
- name: Checkout Push to Registry action
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install latest podman
|
- name: Install latest podman
|
||||||
if: matrix.install_latest
|
if: matrix.install_latest
|
||||||
# https://podman.io/getting-started/installation
|
|
||||||
run: |
|
run: |
|
||||||
. /etc/os-release
|
bash .github/install_latest_podman.sh
|
||||||
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
|
|
||||||
|
|
||||||
- name: Build image using Podman
|
- name: Build image using Podman
|
||||||
run: |
|
run: |
|
||||||
|
|
15
.github/workflows/verify-login-push.yml
vendored
15
.github/workflows/verify-login-push.yml
vendored
|
@ -23,21 +23,16 @@ jobs:
|
||||||
install_latest: [ true, false ]
|
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
|
||||||
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
|
||||||
|
|
15
.github/workflows/verify-push.yaml
vendored
15
.github/workflows/verify-push.yaml
vendored
|
@ -25,16 +25,6 @@ jobs:
|
||||||
install_latest: [ true, false ]
|
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
|
||||||
|
@ -42,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…
Reference in a new issue