mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-24 11:31:46 +00: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
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…
Reference in New Issue
Block a user