No description
This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Abdud Dayan Adeeb 07b07c8cd2 update README
2020-06-17 21:02:26 -04:00
.gitignore setup docker run action 2020-06-17 18:47:31 -04:00
action.yml multiline support 2020-06-17 21:00:26 -04:00
Dockerfile fix command 2020-06-17 19:03:19 -04:00
entrypoint.sh multiline support 2020-06-17 21:00:26 -04:00
LICENSE Initial commit 2020-06-17 17:53:48 -04:00
README.md update README 2020-06-17 21:02:26 -04:00

Docker Run Action

This action targets a very specific use-case that is not currently supported by Github Workflows. This action gives you the capability to run built containers.

Docker already supports running commands inside a docker image. See jobs.<jobs_id>.container. But it doesn't give you a clean way to run an image from a private repo or an image built on a previous step.

Example Usage

Standard use-case

- uses: addnab/docker-run-action@v1
  with:
    image: docker:latest
    run: echo "hello world"

Multiple commands

- uses: addnab/docker-run-action@v1
  with:
    image: docker:latest
    run: |
      echo "first line"
      echo "second line"