|
|
|
@ -26,10 +26,10 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
-
|
|
|
|
|
name: Set up QEMU
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
-
|
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
-
|
|
|
|
@ -61,7 +61,7 @@ jobs:
|
|
|
|
|
-
|
|
|
|
|
name: Docker meta
|
|
|
|
|
id: meta
|
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
|
uses: docker/metadata-action@v4
|
|
|
|
|
with:
|
|
|
|
|
images: |
|
|
|
|
|
${{ env.REPO_SLUG }}
|
|
|
|
@ -73,13 +73,13 @@ jobs:
|
|
|
|
|
-
|
|
|
|
|
name: Login to DockerHub
|
|
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
-
|
|
|
|
|
name: Build and push image
|
|
|
|
|
uses: docker/bake-action@v1
|
|
|
|
|
uses: docker/bake-action@v2
|
|
|
|
|
with:
|
|
|
|
|
files: |
|
|
|
|
|
./docker-bake.hcl
|
|
|
|
@ -105,10 +105,10 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
-
|
|
|
|
|
name: Set up QEMU
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
|
-
|
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
driver-opts: image=moby/buildkit:master
|
|
|
|
@ -116,6 +116,6 @@ jobs:
|
|
|
|
|
-
|
|
|
|
|
# Just run a bake target to check eveything runs fine
|
|
|
|
|
name: Build
|
|
|
|
|
uses: docker/bake-action@v1
|
|
|
|
|
uses: docker/bake-action@v2
|
|
|
|
|
with:
|
|
|
|
|
targets: binaries-cross
|
|
|
|
|