docs: update to v3

This commit is contained in:
Abdud Dayan Adeeb 2021-03-17 20:49:17 -04:00 committed by GitHub
parent 3b7e5e2681
commit a808c5419d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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