PublishImage/.forgejo/workflows/podman_test.yml
2025-03-07 18:54:58 -08:00

22 lines
No EOL
748 B
YAML

name: Test for the presence of Podman
on:
# manual press
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Test for Podman
run: |
podman --version
podman info
podman run --rm -it docker.io/library/alpine:latest echo "Hello, World!"
podman run --rm -it docker.io/library/alpine:latest echo "Hello, World!" | grep "Hello, World!"
podman run --rm -it docker.io/library/alpine:latest echo "Hello, World!" | grep "Goodbye, World!"
podman run --rm -it docker.io/library/alpine:latest echo "Hello, World!" | grep "Goodbye, World!" || exit 1
echo "Podman is installed"