Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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")
|
||||
)
|
||||
|
||||
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