2023-08-16 11:20:10 +02:00
|
|
|
name: "Docker Run Action"
|
|
|
|
description: "Run a command in a new docker container"
|
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
inputs:
|
|
|
|
image:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Docker image to run"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: true
|
2023-08-16 11:20:10 +02:00
|
|
|
|
|
|
|
workdir:
|
|
|
|
description: "Workdir for the container. Defaults to the repository workspace"
|
|
|
|
required: false
|
|
|
|
default: ${{ github.workspace }}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
description: "Volumes to mount in the container. The repository workspace is automatically mounted"
|
|
|
|
required: false
|
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
options:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Custom docker run options"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2023-08-16 11:25:20 +02:00
|
|
|
mount_socket:
|
|
|
|
description: "Mount the docker socket into the container"
|
|
|
|
required: false
|
|
|
|
default: "false"
|
|
|
|
|
2020-06-18 03:00:26 +02:00
|
|
|
run:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Command(s) to run in the container"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2020-06-18 03:21:47 +02:00
|
|
|
shell:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Shell to use"
|
2020-06-18 03:21:47 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
default: /bin/sh
|
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
registry:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Container registry URL"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
username:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Container registry username"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
password:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Container registry password/token"
|
2020-06-18 00:47:31 +02:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2021-01-28 17:00:10 +01:00
|
|
|
docker_network:
|
2023-08-16 11:20:10 +02:00
|
|
|
description: "Docker container network to use"
|
2021-01-28 17:00:10 +01:00
|
|
|
default: ${{ job.container.network }}
|
2021-02-26 18:51:48 +01:00
|
|
|
required: false
|
2023-08-16 11:20:10 +02:00
|
|
|
|
2020-06-18 00:47:31 +02:00
|
|
|
runs:
|
2023-08-16 11:20:10 +02:00
|
|
|
using: "docker"
|
|
|
|
image: "Dockerfile"
|