diff --git a/.buildkite/pipeline.test-user.yml b/.buildkite/pipeline.test-user.yml new file mode 100644 index 0000000..6fca305 --- /dev/null +++ b/.buildkite/pipeline.test-user.yml @@ -0,0 +1,9 @@ +steps: +- label: "Test Pipeline.yml" + command: | + if [ "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "" ]; then + echo "Exporting build variables" + echo $SHOULD_BUILD + fi + env: + SHOULD_BUILD: "true" diff --git a/README.md b/README.md index bd7346f..00660c6 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # Buildkite Tutorial -This repo contains various Buildkite pipelines for a tutorial (soon to be published) on Stark & Wayne blog. +hello This repo contains various Buildkite pipelines for a tutorial (soon to be published) on Stark & Wayne blog. ## Get started - +try pr without pr checkbox and master-new selected Click the following button to start [the tutorial](https://github.com/starkandwayne/buildkite-tutorial) on your [free Buildkite account](https://buildkite.com/pricing): +test pr [![Start tutorial on Buildkite](https://buildkite.com/button.svg)](https://buildkite.com/new) Initially you do not need to fork this repo. diff --git a/hooks/environment b/hooks/environment new file mode 100755 index 0000000..8482a35 --- /dev/null +++ b/hooks/environment @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail + +if [[ "$BUILDKITE_PIPELINE_SLUG" == "samplequestions2" ]]; then + export SHOULD_BUILD_HW1="true" + export SHOULD_BUILD_HW2="true" + export MANIFEST_BRANCH=$BUILDKITE_BRANCH +fi diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..90e5276 --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +tes