generated from getporter/skeletor
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmagefile.go
65 lines (51 loc) · 1.05 KB
/
magefile.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//go:build mage
package main
import (
"get.porter.sh/magefiles/git"
"get.porter.sh/magefiles/mixins"
)
const (
mixinName = "kubernetes"
mixinPackage = "get.porter.sh/mixin/kubernetes"
mixinBin = "bin/mixins/" + mixinName
)
var magefile = mixins.NewMagefile(mixinPackage, mixinName, mixinBin)
func ConfigureAgent() {
magefile.ConfigureAgent()
}
// Build the mixin
func Build() {
magefile.Build()
}
// Cross-compile the mixin before a release
func XBuildAll() {
magefile.XBuildAll()
}
// Run unit tests
func TestUnit() {
magefile.TestUnit()
}
func Test() {
magefile.Test()
}
// Publish the mixin to github
func Publish() {
magefile.Publish()
}
// Test the publish logic against your github fork
func TestPublish(username string) {
magefile.TestPublish(username)
}
// Install the mixin
func Install() {
magefile.Install()
}
// Remove generated build files
func Clean() {
magefile.Clean()
}
// SetupDCO configures your git repository to automatically sign your commits
// to comply with our DCO
func SetupDCO() error {
return git.SetupDCO()
}