2 Commits
0.1.0 ... 0.1.1

Author SHA1 Message Date
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
4 changed files with 11 additions and 8 deletions

View File

@@ -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

View File

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

View File

@@ -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")
) )

View File

@@ -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)
} }
} }