From 5aa408b83e0fbbbe43354f8de0fcef10806ed4b2 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 9 Mar 2019 19:37:28 -0500 Subject: [PATCH] Try an action with vuefun --- .github/main.workflow | 9 +++++++++ vuefun/.actions/build/Dockerfile | 12 ++++++++++++ vuefun/.actions/build/entrypoint.sh | 4 ++++ vuefun/app.go | 7 +++++++ vuefun/go.mod | 1 + vuefun/go.sum | 6 ++++++ vuefun/views/index.html.soy | 8 ++++++++ 7 files changed, 47 insertions(+) create mode 100644 .github/main.workflow create mode 100644 vuefun/.actions/build/Dockerfile create mode 100644 vuefun/.actions/build/entrypoint.sh create mode 100644 vuefun/app.go create mode 100644 vuefun/go.mod create mode 100644 vuefun/go.sum create mode 100644 vuefun/views/index.html.soy diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..10c9cbc --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,9 @@ +workflow "Main" { + on = "push" + resolves = ["vuefun Build"] +} + +action "vuefun Build" { + uses = "./vuefun/.actions/build" + args = "wat" +} diff --git a/vuefun/.actions/build/Dockerfile b/vuefun/.actions/build/Dockerfile new file mode 100644 index 0000000..1246d99 --- /dev/null +++ b/vuefun/.actions/build/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.11-slim + +LABEL "com.github.actions.name"="vuefun Build" +LABEL "com.github.actions.description"="Build the vuefun thing" +LABEL "com.github.actions.color"="gray" + +LABEL "repository"="https://github.com/meatballhat/box-o-sand" +LABEL "homepage"="https://github.com/meatballhat/box-o-sand" +LABEL "maintainer"="Dan Buch " + +ADD entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/vuefun/.actions/build/entrypoint.sh b/vuefun/.actions/build/entrypoint.sh new file mode 100644 index 0000000..f9b2e3a --- /dev/null +++ b/vuefun/.actions/build/entrypoint.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +set -e +echo "Well Hello There" +echo "You said: ${*}" diff --git a/vuefun/app.go b/vuefun/app.go new file mode 100644 index 0000000..50e8d8d --- /dev/null +++ b/vuefun/app.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("vim-go") +} diff --git a/vuefun/go.mod b/vuefun/go.mod new file mode 100644 index 0000000..68d864e --- /dev/null +++ b/vuefun/go.mod @@ -0,0 +1 @@ +module . diff --git a/vuefun/go.sum b/vuefun/go.sum new file mode 100644 index 0000000..ffe4752 --- /dev/null +++ b/vuefun/go.sum @@ -0,0 +1,6 @@ +github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/robfig/soy v0.0.0-20190301161207-6b9d0368d426 h1:JjleeXzkHpcebPftrdF+xkSCglWHAeA8BGMyTBzs0F0= +github.com/robfig/soy v0.0.0-20190301161207-6b9d0368d426/go.mod h1:dtQf30vFRESmRbfRJTwRYCwJiH1iWFrjYE+RRNy+Hzo= +golang.org/x/sys v0.0.0-20190309122539-980fc434d28e h1:eFmUCjqCNXZTydmJBXWeJOHCWGd2My0J+jleBc2ntI0= +golang.org/x/sys v0.0.0-20190309122539-980fc434d28e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/vuefun/views/index.html.soy b/vuefun/views/index.html.soy new file mode 100644 index 0000000..9ce6906 --- /dev/null +++ b/vuefun/views/index.html.soy @@ -0,0 +1,8 @@ + + + + + + + +