mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-02-23 02:21:22 +01:00
Install latest podman in workflow
Signed-off-by: diagrawa <agrawaldivyanshu3005@gmail.com>
This commit is contained in:
parent
0fc254dd6e
commit
d0c6b3cf9b
2 changed files with 22 additions and 0 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
|
15
.github/workflows/example.yml
vendored
15
.github/workflows/example.yml
vendored
|
@ -15,10 +15,20 @@ jobs:
|
||||||
podman-pull:
|
podman-pull:
|
||||||
name: Log in and pull image with Podman
|
name: Log in and pull image with 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
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Log in to quay.io
|
- name: Log in to quay.io
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -36,6 +46,11 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest podman
|
||||||
|
if: matrix.install_latest
|
||||||
|
run: |
|
||||||
|
bash .github/install_latest_podman.sh
|
||||||
|
|
||||||
- name: Log in to quay.io
|
- name: Log in to quay.io
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue