Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit b5f5ac2

Browse files
author
Jim Clark
committed
Matrix builds for pod
1 parent e2a9c2c commit b5f5ac2

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

bb.edn

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
(shell {:continue true} "docker buildx create --name=buildx-multi-arch --driver=docker-container --driver-opt=network=host")
1010
(println "buildx-multi-arch is already running"))
1111
:depends [check-for-builder]}
12-
build-pod-image {:task (shell "docker buildx build --builder=buildx-multi-arch --push --platform=linux/amd64,linux/arm64 --tag=vonwig/pod-atomisthq-tools.docker .")
12+
build-pod-image {:task (shell "docker buildx build --builder=buildx-multi-arch --push --platform=linux/amd64,linux/arm64,darwin/arm64 --tag=vonwig/pod-atomisthq-tools.docker .")
1313
:depends [setup-builder]}
1414

1515
build (do (shell (format "go build -o %s" n))

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
github.com/docker/distribution v2.8.1+incompatible
7-
github.com/docker/index-cli-plugin v0.0.33-0.20230203084141-88bf36ae38c6
7+
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011
88
github.com/jackpal/bencode-go v1.0.0
99
github.com/moby/buildkit v0.10.6
1010
)

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ github.com/docker/index-cli-plugin v0.0.27-0.20230104225926-3eb6de3c7d6b h1:CaER
472472
github.com/docker/index-cli-plugin v0.0.27-0.20230104225926-3eb6de3c7d6b/go.mod h1:Ii4IZOFwVpfut3fbBjjQxO5yeAfHSYuUy6wcsmTsDec=
473473
github.com/docker/index-cli-plugin v0.0.33-0.20230203084141-88bf36ae38c6 h1:L4ncM7lESPnUkuiwyCrYw/6IKGDNdgWgKds4pKzjwt0=
474474
github.com/docker/index-cli-plugin v0.0.33-0.20230203084141-88bf36ae38c6/go.mod h1:8lunxSyNMPeJRCF6aQB7JlhUXzEAB9X9XpzdCVP+WfA=
475+
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011 h1:8Z9o2ORcigv7p+sZahS5xBjppe/fqSRdYBd+PAc/KOY=
476+
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011/go.mod h1:sdYyI6MH4WajfPjdd8WztrHC0v7lHqYZWxT0uDoz3AA=
475477
github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
476478
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
477479
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=

main.go

+4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ package main
33
import (
44
"dockerfileparse/user/parser/babashka"
55
"dockerfileparse/user/parser/docker"
6+
7+
"github.com/atomist-skills/go-skill"
8+
"github.com/sirupsen/logrus"
69
)
710

811
func main() {
12+
skill.Log.SetLevel(logrus.ErrorLevel)
913
for {
1014
message, err := babashka.ReadMessage()
1115
if err != nil {

repository/atomisthq/tools.docker/0.1.0/go.sh

-4
This file was deleted.

repository/atomisthq/tools.docker/0.1.0/manifest.edn

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
[{:os/name "Linux.*"
99
:os/arch "amd64"
1010
:artifact/url "https://github.com/atomisthq/pod-atomisthq-tools.docker/releases/download/v0.1.0/pod-atomisthq-tools.docker-0.1.0-linux-amd64.zip"
11-
:artifact/executable "go.sh"}
11+
:artifact/executable "pod-atomisthq-tools.docker"}
1212
{:os/name "Mac.*"
1313
:os/arch "x86_64"
1414
:artifact/url "https://github.com/atomisthq/pod-atomisthq-tools.docker/releases/download/v0.1.0/pod-atomisthq-tools.docker-0.1.0-macos-x86_64.zip"
15-
:artifact/executable "go.sh"}
15+
:artifact/executable "pod-atomisthq-tools.docker"}
1616
{:os/name "Mac.*"
1717
:os/arch "aarch64"
1818
:artifact/url "https://github.com/atomisthq/pod-atomisthq-tools.docker/releases/download/v0.1.0/pod-atomisthq-tools.docker-0.1.0-macos-arm64.zip"
19-
:artifact/executable "go.sh"}
19+
:artifact/executable "pod-atomisthq-tools.docker"}
2020
{:os/name "Linux.*"
2121
:os/arch "aarch64"
2222
:artifact/url "https://github.com/atomisthq/pod-atomisthq-tools.docker/releases/download/v0.1.0/pod-atomisthq-tools.docker-0.1.0-linux-arm64.zip"
23-
:artifact/executable "go.sh"}]}
23+
:artifact/executable "pod-atomisthq-tools.docker"}]}
2424

0 commit comments

Comments
 (0)