-
Notifications
You must be signed in to change notification settings - Fork 8
/
magefile.go
42 lines (34 loc) · 1006 Bytes
/
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
// Copyright 2020 Adobe
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in
// accordance with the terms of the Adobe license agreement accompanying
// it. If you have received this file from a source other than Adobe,
// then your use, modification, or distribution of it requires the prior
// written permission of Adobe.
//
//+build mage
package main
import (
"github.com/magefile/mage/mg"
// mage:import docker
"github.com/adobe/kratos/mage/docker"
// mage:import helm
"github.com/adobe/kratos/mage/helm"
// mage:import operator
"github.com/adobe/kratos/mage/operator"
// mage:import
_ "github.com/adobe/kratos/mage/integrationTests"
)
// Cleans project
func Clean() {
//mg.Deps(operator.Clean)
mg.Deps(operator.Clean, helm.Clean)
}
// Build code, docker image and helm chart
func Build() {
mg.SerialDeps(operator.Build)
mg.SerialDeps(helm.PackageChart)
mg.SerialDeps(dockerutils.BuildImage)
mg.SerialDeps(dockerutils.PushImage)
}