Build the thing with another action

This commit is contained in:
Dan Buch 2019-03-09 19:55:50 -05:00
parent 16760d88e1
commit e7c8db3777
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
5 changed files with 19 additions and 18 deletions

View File

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

View File

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

View File

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

17
vuefun/Makefile Normal file
View File

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

Binary file not shown.