Go to file
2024-04-10 14:14:47 +03:00
.gitignore setup docker run action 2020-06-17 18:47:31 -04:00
action.yml fix using option entrypoint in podman-run 2024-04-10 14:14:47 +03:00
entrypoint.sh fix using option entrypoint in podman-run 2024-04-10 14:14:47 +03:00
LICENSE Forked from https://github.com/addnab/docker-run-action 2023-10-20 09:43:24 +03:00
README.md Forked from https://github.com/addnab/docker-run-action 2023-10-20 09:43:24 +03:00

Podman Run Action

Examples

Typical Use Case

- name: Checkout 
  uses: actions/checkout@v2 # Required to mount the Github Workspace to a volume 
- uses: fmidev/podman-run-action@v1
  with:
    username: ${{ secrets.PODMAN_USERNAME }}
    password: ${{ secrets.PODMAN_PASSWORD }}
    registry: gcr.io
    image: private-image:latest
    options: -v ${{ github.workspace }}:/work -e ABC=123
    run: |
      echo "Running Script"
      /work/run-script      

run a privately-owned image

- uses: fmidev/podman-run-action@v1
  with:
    username: ${{ secrets.PODMAN_USERNAME }}
    password: ${{ secrets.PODMAN_PASSWORD }}
    registry: gcr.io
    image: test-image:latest
    run: echo "hello world"

run an image built by a previous step

- uses: podman/build-push-action@v2
  with:
    tags: test-image:latest
    push: false
- uses: fmidev/podman-run-action@v1
  with:
    image: test-image:latest
    run: echo "hello world"

use a specific shell (default: sh).

Note: The shell must be installed in the container

- uses: fmidev/podman-run-action@v1
  with:
    image: podman:latest
    shell: bash
    run: |
      echo "first line"
      echo "second line"