Build the thing with another action

cat-town
Dan Buch 6 years ago
parent 16760d88e1
commit e7c8db3777
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -4,6 +4,6 @@ workflow "Main" {
} }
action "vuefun Build" { action "vuefun Build" {
uses = "./vuefun/.actions/build" uses = "cedrickring/golang-action/g,1.11@1.1.1"
args = "wat" args = "make -C vuefun"
} }

@ -1,12 +0,0 @@
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 <dan+github-box-o-sand@meatballhat.com>"
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

@ -1,4 +0,0 @@
#!/usr/bin/env sh
set -e
echo "Well Hello There"
echo "You said: ${*}"

@ -0,0 +1,17 @@
BUILD_NAME := $(shell go env GOOS)_$(shell go env GOARCH)
TARGETS := build/$(BUILD_NAME)/vuefun-app
.PHONY: all
all: $(TARGETS)
.PHONY: wat
wat:
@echo TARGETS="$(TARGETS)"
.PHONY: clean
clean:
rm -rf build
build/$(BUILD_NAME)/vuefun-app: $(wildcard *.go)
go build -o $@ $<
Loading…
Cancel
Save