diff --git a/.kapetanios/postsubmit.yaml b/.kapetanios/postsubmit.yaml index 6332a67f4d..c4f2eaa03e 100644 --- a/.kapetanios/postsubmit.yaml +++ b/.kapetanios/postsubmit.yaml @@ -21,7 +21,7 @@ spec: - name: bazel_cache_service_account type: PROJECT - - name: publish-piped-linux + - name: publish-linux-binaries timeout: 15m machine: resource: medium @@ -32,6 +32,7 @@ spec: runner: gcr.io/pipecd/runner:1.0.0 commands: - bazelisk --output_base=/workspace/bazel_out build --config=ci --config=linux --config=stamping //:copy_piped + - bazelisk --output_base=/workspace/bazel_out build --config=ci --config=linux --config=stamping //:copy_pipectl secrets: - name: bazel_cache_service_account type: PROJECT @@ -39,11 +40,12 @@ spec: runner: gcr.io/pipecd/asset-publisher:0.0.1 commands: - /asset-publisher --asset-name-suffix=linux_amd64 --asset-file=bazel-bin/piped + - /asset-publisher --asset-name-suffix=linux_amd64 --asset-file=bazel-bin/pipectl secrets: - name: github_token type: PROJECT - - name: publish-piped-darwin + - name: publish-darwin-binaries timeout: 30m machine: resource: medium @@ -54,6 +56,7 @@ spec: runner: gcr.io/pipecd/runner:1.0.0 commands: - bazelisk --output_base=/workspace/bazel_out build --config=ci --config=darwin --config=stamping //:copy_piped + - bazelisk --output_base=/workspace/bazel_out build --config=ci --config=darwin --config=stamping //:copy_pipectl secrets: - name: bazel_cache_service_account type: PROJECT @@ -61,6 +64,7 @@ spec: runner: gcr.io/pipecd/asset-publisher:0.0.1 commands: - /asset-publisher --asset-name-suffix=darwin_amd64 --asset-file=bazel-bin/piped + - /asset-publisher --asset-name-suffix=darwin_amd64 --asset-file=bazel-bin/pipectl secrets: - name: github_token type: PROJECT diff --git a/BUILD.bazel.tpl b/BUILD.bazel.tpl index 0008be6e29..62e851c5bc 100644 --- a/BUILD.bazel.tpl +++ b/BUILD.bazel.tpl @@ -40,3 +40,9 @@ genrule( cmd = "cp $< $@", ) +genrule( + name = "copy_pipectl", + srcs = ["//cmd/pipectl"], + outs = ["pipectl"], + cmd = "cp $< $@", +)