-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
triage/supportIndicates an issue that is a support question.Indicates an issue that is a support question.
Description
Hi Shipwright team, want to check if Shipwirght support trigger then buildrun by some webhook or GitHub action or Shipwirght monitoring the source branch that when my source branch is updated, automatically trigger a buildrun to build the new image with the latest changes. If yes, is there any example of this? Thanks.
REGISTRY_ORG=<your_registry_org>
cat <<EOF | kubectl apply -f -
apiVersion: shipwright.io/v1alpha1
kind: Build
metadata:
name: buildpack-nodejs-build
spec:
source:
url: https://github.com/shipwright-io/sample-nodejs
contextDir: source-build
strategy:
name: buildpacks-v3
kind: ClusterBuildStrategy
output:
image: docker.io/${REGISTRY_ORG}/sample-nodejs:latest
credentials:
name: push-secret
EOF
cat <<EOF | kubectl create -f -
apiVersion: shipwright.io/v1alpha1
kind: BuildRun
metadata:
generateName: buildpack-nodejs-buildrun-
spec:
buildRef:
name: buildpack-nodejs-build
EOF
Metadata
Metadata
Assignees
Labels
triage/supportIndicates an issue that is a support question.Indicates an issue that is a support question.