-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.65 KB
/
podman-v5-ubuntu.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
name: ubuntu-homebrew-podman-v5
on:
workflow_dispatch:
repository_dispatch:
types: [e2e-command]
pull_request:
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
#if: ${{ github.event.action == 'e2e-command' || github.event.action == 'e2e' }}
if: github.event.issue.pull_request && contains(github.event.comment.body, '/e2e')
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install podman v5
run: |
# Remove the old crun executable coming from podman v4 ubuntu package to let brew to install a newer one ...
sudo apt-get remove crun
sudo apt-get remove podman
sudo systemctl stop docker.socket
sudo systemctl stop docker
brew install podman
brew services start podman
echo "Expose the podman API and podman.socket"
podman system service --time=0 &
echo "Podman version: " $(podman info -f json | jq -r .version.Version)
echo "Podman rootless: " $(podman info -f json | jq -r .host.security.rootless)
echo "Podman sock path: " $(podman info -f json | jq -r .host.remoteSocket.path)
echo "Podman sock path: unix://${XDG_RUNTIME_DIR}/podman/podman.sock"
echo "PODMAN_SOCK_PATH=${XDG_RUNTIME_DIR}/podman/podman.sock" >> $GITHUB_ENV
- name: Display versions
run: |
podman -v
crun -v
podman info
- name: Run container
run: |
podman --log-level debug run -it -p 8888:8888 nginxdemos/nginx-hello:plain-text