This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
/
action.yml
62 lines (52 loc) 路 2.43 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Metadata syntax: <https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions>
name: Install Podman
description: Installs a fresh Podman version in your GitHub Actions workflow
inputs:
kind:
description: The version kind
default: 'testing' # or 'unstable'
qemu:
description: Install QEMU
default: 'false' # or 'true'
cache-salt:
description: The cache salt
default: 'any-string'
runs:
using: composite
steps: # manual: <https://podman.io/docs/installation#debian>
- if: ${{ inputs.kind == 'testing' }}
shell: bash
run: |
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
- if: ${{ inputs.kind == 'testing' }}
shell: bash
run: |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] \
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Testing/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
- if: ${{ inputs.kind == 'unstable' }}
shell: bash
run: |
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/Release.key \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null
- if: ${{ inputs.kind == 'unstable' }}
shell: bash
run: |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg] \
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/Debian_Unstable/ /" \
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null
- shell: bash
run: sudo apt-get -q update
#- uses: awalsh128/cache-apt-pkgs-action@v1
# with:
# packages: aardvark-dns conmon containers-common criu crun libnet1 libprotobuf-c1 libprotobuf23 netavark podman-gvproxy python3-protobuf conmon crun podman
# version: ${{ inputs.cache-salt }}
- if: ${{ inputs.qemu == 'true' }}
shell: bash
run: sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
branding:
icon: download
color: purple