mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-31 04:00:08 +02:00
Add complete working example
Addresses https://github.com/docker/build-push-action/issues/25 Signed-off-by: Olga Botvinnik <olga.botvinnik@gmail.com>
This commit is contained in:
parent
e5e36c4a4e
commit
db7eca3379
1 changed files with 21 additions and 1 deletions
22
README.md
22
README.md
|
@ -192,4 +192,24 @@ with:
|
|||
repository: myorg/myrepository
|
||||
tag_with_ref: true
|
||||
target: mytarget
|
||||
```
|
||||
```
|
||||
|
||||
### Minimal complete working github actions yaml file
|
||||
|
||||
```yaml
|
||||
name: Build Docker images
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'Checkout git repo'
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Build Docker images
|
||||
uses: docker/build-push-action@v1.0.1
|
||||
with:
|
||||
repository: myorg/myrepository
|
||||
push: false
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue