Skip to content

Commit

Permalink
Merge pull request buildpacks#35 from buildpacks/fix/pipeline
Browse files Browse the repository at this point in the history
Add category to pipeline/buildpack/0.1
  • Loading branch information
jromero authored Nov 5, 2021
2 parents 9002c97 + cb4b387 commit 771bbd2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
- uses: actions/checkout@v2
- uses: engineerd/[email protected]
with:
version: "v0.11.1"
image: "kindest/node:v1.21.1"
skipClusterCreation: true
- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions pipeline/buildpacks/0.1/buildpacks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/categories: Image Build
tekton.dev/pipelines.minVersion: "0.17.0"
tekton.dev/tags: image-build
tekton.dev/displayName: "Buildpacks"
Expand Down
20 changes: 19 additions & 1 deletion scripts/platforms/1_k8s_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,22 @@ $KUBECTLCMD apply --filename https://storage.googleapis.com/tekton-releases/pipe

echo "> Waiting for pods to be ready..."
sleep 15
$KUBECTLCMD wait --for=condition=ready -n tekton-pipelines pods --timeout=120s --all

# disable error propogation
set +e

$KUBECTLCMD wait --for=condition=ready -n tekton-pipelines pods --timeout=300s --all
wait_rc="${?}"

# re-enable error propogation
set -e

if [ "${wait_rc}" -ne 0 ]; then
echo "Failed to start pods..."
echo "Current pod status: "
$KUBECTLCMD get -n tekton-pipelines pods

# Write an informative error message and halt the script with an `exit 1`, or
# perhaps let it continue onwards, depending on what you're doing.
exit 1
fi

0 comments on commit 771bbd2

Please sign in to comment.