Skip to content

Commit

Permalink
[artifacts/container image] Only trigger on main branch (#151050)
Browse files Browse the repository at this point in the history
We only need to product container images for the most recent commit.
This updates the trigger to only run on `main`.

note: `skip-ci` label, this only runs on-merge and is a no-op from pull
requests.
  • Loading branch information
jbudz committed Feb 13, 2023
1 parent 17855ba commit f1046e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .buildkite/scripts/steps/artifacts/docker_image_trigger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

set -euo pipefail

ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-artifacts-container-image "$BUILDKITE_BRANCH" "$BUILDKITE_COMMIT"
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
echo "--- Trigger artifacts container image pipeline"
ts-node .buildkite/scripts/steps/trigger_pipeline.ts kibana-artifacts-container-image "$BUILDKITE_BRANCH" "$BUILDKITE_COMMIT"
fi

0 comments on commit f1046e5

Please sign in to comment.