test
This commit is contained in:
parent
399f47ae3d
commit
714cdf7c96
1 changed files with 19 additions and 0 deletions
19
.forgejo/workflows/podman-demo.yml
Normal file
19
.forgejo/workflows/podman-demo.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Podman Rootless Demo
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-rootless:
|
||||||
|
runs-on: [ci]
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Test Podman rootless
|
||||||
|
run: |
|
||||||
|
podman --version
|
||||||
|
podman run --rm alpine:3.20 echo "Hello from rootless Podman!"
|
||||||
|
|
||||||
|
- name: Build and run a container
|
||||||
|
run: |
|
||||||
|
podman build -t test-image .
|
||||||
|
podman run --rm test-image
|
Loading…
Add table
Reference in a new issue