Commit 31103af 1 parent 967ca4a commit 31103af Copy full SHA for 31103af
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def pipeline_test(ctx):
37
37
return new_pipeline (
38
38
name = "test" ,
39
39
arch = "amd64" ,
40
- trigger = {"branch" : "main" },
40
+ trigger = {"branch" : ctx . repo . branch },
41
41
volumes = [cache_volume ],
42
42
workspace = {"path" : "/go/src/github.com/{}" .format (ctx .repo .slug )},
43
43
steps = [
@@ -126,10 +126,12 @@ def pipeline_manifest(ctx):
126
126
127
127
128
128
def main (ctx ):
129
- pipelines = pipeline_test (ctx )
129
+ pipelines = [ pipeline_test (ctx )]
130
130
131
131
# only perform image builds for "push" and "tag" events
132
- if ctx .build .branch == "main" and ctx .build .event in ["push" , "tag" ]:
132
+ if ctx .build .event == "tag" or (
133
+ ctx .build .branch == ctx .repo .branch and ctx .build .event == "push"
134
+ ):
133
135
pipelines .append (pipeline_build (ctx , "amd64" ))
134
136
pipelines .append (pipeline_build (ctx , "arm64" ))
135
137
pipelines .append (pipeline_manifest (ctx ))
You can’t perform that action at this time.
0 commit comments