Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0df617fe71 | ||
|
|
57cb1806f4 | ||
|
|
292f7ec3cc |
@@ -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
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -2,8 +2,8 @@ name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
releases-matrix:
|
||||
|
||||
@@ -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
2
go.mod
@@ -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
2
go.sum
@@ -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=
|
||||
|
||||
5
main.go
5
main.go
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user