mirror of
https://github.com/docker/build-push-action.git
synced 2025-07-01 13:34:14 +00:00
Composite action
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
a66e35b9cb
commit
36ee882947
2 changed files with 95 additions and 0 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
@ -673,3 +673,29 @@ jobs:
|
|||
name: Dump context
|
||||
if: always()
|
||||
uses: crazy-max/ghaction-dump-context@v1
|
||||
|
||||
composite:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
ports:
|
||||
- 5000:5000
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Build with composite
|
||||
uses: ./composite
|
||||
with:
|
||||
context: .
|
||||
file: ./test/Dockerfile
|
||||
images: |
|
||||
localhost:5000/name/app
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
-
|
||||
name: Dump context
|
||||
if: always()
|
||||
uses: crazy-max/ghaction-dump-context@v1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue