mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-10 04:15:40 +01:00
Merge pull request #194 from crazy-max/buildargs-example
Fix build-args example
This commit is contained in:
commit
4d8e3c6c3b
@ -88,6 +88,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: user/app:latest
|
tags: user/app:latest
|
||||||
|
build-args: |
|
||||||
|
arg1=value1
|
||||||
|
arg2=value2
|
||||||
-
|
-
|
||||||
name: Image digest
|
name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
@ -65,7 +65,9 @@ steps:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
build-args: arg1=value1,arg2=value2
|
build-args: |
|
||||||
|
arg1=value1
|
||||||
|
arg2=value2
|
||||||
cache-from: type=registry,ref=myorg/myrepository:latest
|
cache-from: type=registry,ref=myorg/myrepository:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
tags: myorg/myrepository:latest
|
tags: myorg/myrepository:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user