mirror of
https://github.com/addnab/docker-run-action.git
synced 2025-01-14 00:27:58 +08:00
feat: upgrade to v2
This commit is contained in:
parent
e7a9a2b25a
commit
4d955dc997
@ -7,7 +7,7 @@
|
|||||||
#### Typical Use Case
|
#### Typical Use Case
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: addnab/docker-run-action@v1
|
- uses: addnab/docker-run-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#### run a privately-owned image
|
#### run a privately-owned image
|
||||||
```yaml
|
```yaml
|
||||||
- uses: addnab/docker-run-action@v1
|
- uses: addnab/docker-run-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
@ -36,7 +36,7 @@
|
|||||||
with:
|
with:
|
||||||
repository: test-image
|
repository: test-image
|
||||||
push: false
|
push: false
|
||||||
- uses: addnab/docker-run-action@v1
|
- uses: addnab/docker-run-action@v2
|
||||||
with:
|
with:
|
||||||
image: test-image:latest
|
image: test-image:latest
|
||||||
run: echo "hello world"
|
run: echo "hello world"
|
||||||
@ -46,7 +46,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@v1
|
- uses: addnab/docker-run-action@v2
|
||||||
with:
|
with:
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
shell: bash
|
shell: bash
|
||||||
|
10
RELEASES.md
Normal file
10
RELEASES.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# addnab/docker-run-action Releases
|
||||||
|
|
||||||
|
### 2.0.0
|
||||||
|
|
||||||
|
- Added support for networking with other containers [#3](https://github.com/addnab/docker-run-action/pull/3) [#7](https://github.com/addnab/docker-run-action/pull/7)
|
||||||
|
- Added tests [#7](https://github.com/addnab/docker-run-action/pull/7)
|
||||||
|
|
||||||
|
### 1.0.0
|
||||||
|
|
||||||
|
- Initial release
|
Loading…
x
Reference in New Issue
Block a user