Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57cb1806f4 | ||
|
|
292f7ec3cc |
@@ -2,8 +2,8 @@ name: Build and push
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: docker/babashka-pod-docker
|
IMAGE_NAME: docker/babashka-pod-docker
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
org.opencontainers.image.revision=${{ env.SHA }}
|
org.opencontainers.image.revision=${{ env.SHA }}
|
||||||
tags: |
|
tags: |
|
||||||
latest
|
latest
|
||||||
0.1.0
|
${{github.ref_name}}
|
||||||
|
|
||||||
# Build and push Docker image with Buildx (don't push on PR)
|
# Build and push Docker image with Buildx (don't push on PR)
|
||||||
# https://github.com/docker/build-push-action
|
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
releases-matrix:
|
releases-matrix:
|
||||||
|
|||||||
@@ -66,8 +66,8 @@
|
|||||||
(println (load-pod "./babashka-pod-docker"))
|
(println (load-pod "./babashka-pod-docker"))
|
||||||
(impl/invoke-public
|
(impl/invoke-public
|
||||||
"docker.babashka-pod-docker"
|
"docker.babashka-pod-docker"
|
||||||
"babashka-pod-docker/parse-image-name"
|
"babashka-pod-docker/generate-sbom"
|
||||||
["ubuntu:latest"]
|
["ubuntu:latest" "" ""]
|
||||||
{})
|
{})
|
||||||
(generate-sbom "alpine")
|
(generate-sbom "alpine")
|
||||||
)
|
)
|
||||||
|
|||||||
5
main.go
5
main.go
@@ -3,9 +3,13 @@ package main
|
|||||||
import (
|
import (
|
||||||
"dockerfileparse/user/parser/babashka"
|
"dockerfileparse/user/parser/babashka"
|
||||||
"dockerfileparse/user/parser/docker"
|
"dockerfileparse/user/parser/docker"
|
||||||
|
|
||||||
|
"github.com/atomist-skills/go-skill"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
skill.Log.SetLevel(logrus.ErrorLevel)
|
||||||
for {
|
for {
|
||||||
message, err := babashka.ReadMessage()
|
message, err := babashka.ReadMessage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -28,4 +32,3 @@ func main() {
|
|||||||
babashka.WriteInvokeResponse(message, res)
|
babashka.WriteInvokeResponse(message, res)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user