You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Github Workflows already supports running on public docker images out-of-the-box (See [jobs.<jobs_id>.container](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontainer)).
3
+
- run a privately-owned image.
4
+
- run an image built by a previous step.
5
+
- run a specific step in docker.
6
+
- See https://github.com/addnab/docker-run-action/blob/main/action.yml for all the available inputs.
4
7
5
-
### Then why use docker-run-action?
6
-
- run on a privately-owned image.
7
-
- run on an image built by a previous step.
8
-
- run a specific step in docker
8
+
#### Typical Use Case
9
9
10
-
### Example Usage
11
-
12
-
#### single-line command
13
-
```yaml
14
-
- uses: addnab/docker-run-action@v1
15
-
with:
16
-
image: docker:latest
17
-
run: echo "hello world"
18
-
```
19
-
20
-
#### multi-line commands
21
10
```yaml
22
11
- uses: addnab/docker-run-action@v1
23
12
with:
24
-
image: docker:latest
13
+
username: ${{ secrets.DOCKER_USERNAME }}
14
+
password: ${{ secrets.DOCKER_PASSWORD }}
15
+
registry: gcr.io
16
+
image: private-image:latest
17
+
options: -v $GITHUB_WORKSPACE:/work -e ABC=123
25
18
run: |
26
-
echo "first line"
27
-
echo "second line"
19
+
./run-script
28
20
```
29
21
30
-
#### run on a privately-owned image
22
+
#### run a privately-owned image
31
23
```yaml
32
24
- uses: addnab/docker-run-action@v1
33
25
with:
@@ -38,7 +30,7 @@ Github Workflows already supports running on public docker images out-of-the-box
38
30
run: echo "hello world"
39
31
```
40
32
41
-
#### run on an image built by a previous step
33
+
#### run an image built by a previous step
42
34
```yaml
43
35
- uses: docker/build-push-action@v1
44
36
with:
@@ -62,13 +54,3 @@ Github Workflows already supports running on public docker images out-of-the-box
0 commit comments