3 Commits
0.1.0 ... 0.1.2

Author SHA1 Message Date
Jonny Stoten
0df617fe71 Update docker/index-cli-plugin
Some checks failed
Build and push / build (push) Has been cancelled
Release / Release Go Binary (amd64, darwin) (push) Has been cancelled
Release / Release Go Binary (amd64, linux) (push) Has been cancelled
Release / Release Go Binary (amd64, windows) (push) Has been cancelled
Release / Release Go Binary (arm64, darwin) (push) Has been cancelled
Release / Release Go Binary (arm64, linux) (push) Has been cancelled
2023-02-14 11:32:52 +00:00
James Carnegie
57cb1806f4 Trigger from tagging
Some checks failed
Build and push / build (push) Has been cancelled
Release / Release Go Binary (amd64, darwin) (push) Has been cancelled
Release / Release Go Binary (amd64, linux) (push) Has been cancelled
Release / Release Go Binary (amd64, windows) (push) Has been cancelled
Release / Release Go Binary (arm64, darwin) (push) Has been cancelled
Release / Release Go Binary (arm64, linux) (push) Has been cancelled
2023-02-09 13:59:16 +00:00
James Carnegie
292f7ec3cc Set log level to avoid stdout logging 2023-02-09 13:41:43 +00:00
6 changed files with 14 additions and 9 deletions

View File

@@ -2,8 +2,8 @@ name: Build and push
on:
push:
branches:
- main
tags:
- '*'
env:
IMAGE_NAME: docker/babashka-pod-docker
@@ -42,7 +42,7 @@ jobs:
org.opencontainers.image.revision=${{ env.SHA }}
tags: |
latest
0.1.0
${{github.ref_name}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action

View File

@@ -2,8 +2,8 @@ name: Release
on:
push:
branches:
- main
tags:
- '*'
jobs:
releases-matrix:

View File

@@ -66,8 +66,8 @@
(println (load-pod "./babashka-pod-docker"))
(impl/invoke-public
"docker.babashka-pod-docker"
"babashka-pod-docker/parse-image-name"
["ubuntu:latest"]
"babashka-pod-docker/generate-sbom"
["ubuntu:latest" "" ""]
{})
(generate-sbom "alpine")
)

2
go.mod
View File

@@ -4,7 +4,7 @@ go 1.19
require (
github.com/docker/distribution v2.8.1+incompatible
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011
github.com/docker/index-cli-plugin v0.0.34-0.20230213201827-11b2a8c1eaa7
github.com/jackpal/bencode-go v1.0.0
github.com/moby/buildkit v0.10.6
)

2
go.sum
View File

@@ -474,6 +474,8 @@ github.com/docker/index-cli-plugin v0.0.33-0.20230203084141-88bf36ae38c6 h1:L4nc
github.com/docker/index-cli-plugin v0.0.33-0.20230203084141-88bf36ae38c6/go.mod h1:8lunxSyNMPeJRCF6aQB7JlhUXzEAB9X9XpzdCVP+WfA=
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011 h1:8Z9o2ORcigv7p+sZahS5xBjppe/fqSRdYBd+PAc/KOY=
github.com/docker/index-cli-plugin v0.0.33-0.20230203131411-00c585229011/go.mod h1:sdYyI6MH4WajfPjdd8WztrHC0v7lHqYZWxT0uDoz3AA=
github.com/docker/index-cli-plugin v0.0.34-0.20230213201827-11b2a8c1eaa7 h1:rVqhg6loz0j6QoXLEuUcBBjTUHmx7DCivZyaOBbSOEw=
github.com/docker/index-cli-plugin v0.0.34-0.20230213201827-11b2a8c1eaa7/go.mod h1:E+TVIQ/+kVImbWGs0RnI4NWKYMKgzTG0RM+WrWWCFP4=
github.com/docker/libtrust v0.0.0-20150114040149-fa567046d9b1/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7/go.mod h1:cyGadeNEkKy96OOhEzfZl+yxihPEzKnqJwvfuSUqbZE=
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=

View File

@@ -3,9 +3,13 @@ package main
import (
"dockerfileparse/user/parser/babashka"
"dockerfileparse/user/parser/docker"
"github.com/atomist-skills/go-skill"
"github.com/sirupsen/logrus"
)
func main() {
skill.Log.SetLevel(logrus.ErrorLevel)
for {
message, err := babashka.ReadMessage()
if err != nil {
@@ -28,4 +32,3 @@ func main() {
babashka.WriteInvokeResponse(message, res)
}
}