|
|
@ -158,7 +158,7 @@ jobs:
|
|
|
|
id: buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./setup-buildx/ # change to docker/setup-buildx-action@master
|
|
|
|
uses: ./setup-buildx/ # change to docker/setup-buildx-action@master
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Build 1
|
|
|
|
name: Build with cache
|
|
|
|
uses: ./
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: ./test
|
|
|
|
context: ./test
|
|
|
@ -169,18 +169,6 @@ jobs:
|
|
|
|
tags: |
|
|
|
|
tags: |
|
|
|
|
localhost:5000/name/app:latest
|
|
|
|
localhost:5000/name/app:latest
|
|
|
|
localhost:5000/name/app:1.0.0
|
|
|
|
localhost:5000/name/app:1.0.0
|
|
|
|
-
|
|
|
|
|
|
|
|
name: Build 2
|
|
|
|
|
|
|
|
uses: ./
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
context: ./test
|
|
|
|
|
|
|
|
file: ./test/Dockerfile-multi-golang
|
|
|
|
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
|
|
|
|
cache-github: true
|
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
|
localhost:5000/name/app2:latest
|
|
|
|
|
|
|
|
localhost:5000/name/app2:1.0.0
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Dump context
|
|
|
|
name: Dump context
|
|
|
|
if: always()
|
|
|
|
if: always()
|
|
|
|