docs: update to v3
This commit is contained in:
parent
3b7e5e2681
commit
a808c5419d
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
@ -4,10 +4,12 @@
|
||||||
- run an image built by a previous step.
|
- run an image built by a previous step.
|
||||||
- See https://github.com/addnab/docker-run-action/blob/main/action.yml for all the available inputs.
|
- See https://github.com/addnab/docker-run-action/blob/main/action.yml for all the available inputs.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
#### Typical Use Case
|
#### Typical Use Case
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: addnab/docker-run-action@v2
|
- uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
@ -21,7 +23,7 @@
|
||||||
|
|
||||||
#### run a privately-owned image
|
#### run a privately-owned image
|
||||||
```yaml
|
```yaml
|
||||||
- uses: addnab/docker-run-action@v2
|
- uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
@ -36,7 +38,7 @@
|
||||||
with:
|
with:
|
||||||
repository: test-image
|
repository: test-image
|
||||||
push: false
|
push: false
|
||||||
- uses: addnab/docker-run-action@v2
|
- uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: test-image:latest
|
image: test-image:latest
|
||||||
run: echo "hello world"
|
run: echo "hello world"
|
||||||
|
@ -46,7 +48,7 @@
|
||||||
#### use a specific shell (default: sh).
|
#### use a specific shell (default: sh).
|
||||||
*Note: The shell must be installed in the container*
|
*Note: The shell must be installed in the container*
|
||||||
```yaml
|
```yaml
|
||||||
- uses: addnab/docker-run-action@v2
|
- uses: addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Reference in a new issue