1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-28 07:56:37 +01:00

Tries to make github run golang

This commit is contained in:
Amir Raminfar
2019-03-17 17:43:23 -07:00
parent 86fd8cb82e
commit 3772d36e41
5 changed files with 23 additions and 5 deletions

6
.github/golang/Dockerfile vendored Normal file
View File

@@ -0,0 +1,6 @@
FROM golang:1.12
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD [""]

4
.github/golang/entrypoint.sh vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
set -e
go test -cover ./...

10
.github/main.workflow vendored
View File

@@ -5,18 +5,18 @@ workflow "Release" {
]
}
action "cedrickring/golang-action@1.2.0" {
uses = "cedrickring/golang-action@1.2.0"
action "go-build" {
uses = "./.github/golang/"
}
action "actions/bin/filter@master" {
action "is-tag" {
uses = "actions/bin/filter@master"
needs = ["cedrickring/golang-action@1.2.0"]
needs = ["go-build"]
args = "tag"
}
action "goreleaser/goreleaser" {
uses = "docker://goreleaser/goreleaser"
needs = ["actions/bin/filter@master"]
needs = ["is-tag"]
args = "release"
}