Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trigger BuildRun when source is updated #1017

Closed
lizzzcai opened this issue Mar 22, 2022 · 2 comments
Closed

trigger BuildRun when source is updated #1017

lizzzcai opened this issue Mar 22, 2022 · 2 comments
Labels
triage/support Indicates an issue that is a support question.

Comments

@lizzzcai
Copy link

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
@gabemontero
Copy link
Member

the design is currently being worked on with shipwright-io/community#68 @lizzzcai

once that EP is finalized and merged, the PR #1008 will evolve into the implemenetation (or at least the first step in the implementation, depending on how it is staged.

@gabemontero gabemontero added the triage/support Indicates an issue that is a support question. label Mar 22, 2022
@gabemontero
Copy link
Member

please do visit shipwright-io/community#68 @lizzzcai and provide any comments etc. on the approach @otaviof is introducing

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

2 participants