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:
6
.github/golang/Dockerfile
vendored
Normal file
6
.github/golang/Dockerfile
vendored
Normal 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
4
.github/golang/entrypoint.sh
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
go test -cover ./...
|
||||
10
.github/main.workflow
vendored
10
.github/main.workflow
vendored
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user