Merge pull request #94 from klutchell/kyle/docker-bake

Use docker bake file for multi-arch builds with Flowzone
This commit is contained in:
Kyle Harding
2022-08-30 14:50:13 -04:00
committed by GitHub
4 changed files with 27 additions and 13 deletions
+5 -11
View File
@@ -18,15 +18,9 @@ jobs:
FLOWZONE_TOKEN: ${{ secrets.FLOWZONE_TOKEN }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
DOCKER_REGISTRY_USER: ${{ secrets.DOCKER_REGISTRY_USER }}
DOCKER_REGISTRY_PASS: ${{ secrets.DOCKER_REGISTRY_PASS }}
DOCKERHUB_USER: ${{ secrets.DOCKER_REGISTRY_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKER_REGISTRY_PASS }}
with:
protect_branch: false
skip_versioning: true
docker_platforms: |
linux/amd64
linux/arm64
linux/arm/v7
linux/arm/v6
dockerhub_repo: klutchell/unbound
ghcr_repo: klutchell/unbound
docker_images: |
ghcr.io/klutchell/unbound,
docker.io/klutchell/unbound
+14
View File
@@ -0,0 +1,14 @@
// https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {}
target "build" {
inherits = ["docker-metadata-action"]
context = "./"
dockerfile = "Dockerfile"
platforms = [
"linux/amd64",
"linux/arm/v7",
"linux/arm/v6",
"linux/arm64"
]
}
+7 -1
View File
@@ -4,12 +4,18 @@ services:
server:
image: sut
build:
context: .
dockerfile: Dockerfile
networks:
- internal
command: -v -v -v
version:
image: sut
build:
context: .
dockerfile: Dockerfile
networks:
- internal
command: -V
@@ -22,7 +28,7 @@ services:
- server
entrypoint: ""
command: >-
sh -c '
/bin/sh -c '
apk add --no-cache bind-tools &&
dig sigok.verteiltesysteme.net @server +dnssec | tee /dev/stderr | grep -wq NOERROR &&
dig sigfail.verteiltesysteme.net @server +dnssec | tee /dev/stderr | grep -wq SERVFAIL
+1 -1
View File
@@ -1,7 +1,7 @@
version: "2"
services:
sut:
server:
build:
context: .
dockerfile: Dockerfile