-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 1.05 KB
/
podman-test.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
name: Test with systemd containers
on:
pull_request:
push:
tags:
- v*
workflow_dispatch:
inputs:
jobs:
ubuntu-test:
name: Run remote config test with Ubuntu systemd container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: podman image build -t fup:ubuntu -f tests/image/Dockerfile.ubuntu .
- name: Provision in the image
run: |
container=$(podman container run --name ubuntu --rm -d fup:ubuntu)
podman container exec -ti $container bash -c 'curl -L fcd.url.lol/u | bash -'
fedora-test:
name: Run remote config test with Fedora systemd container
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build image
run: podman image build -t fup:fedora -f tests/image/Dockerfile.fedora .
- name: Provision in the image
run: |
container=$(podman container run --name fedora --rm -d fup:fedora)
podman container exec -ti $container bash -c 'curl -L fcd.url.lol/u | bash -'