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

Why does the plugin skip builds for PRs? #406

Open
Dan6erbond opened this issue Sep 24, 2023 · 0 comments
Open

Why does the plugin skip builds for PRs? #406

Dan6erbond opened this issue Sep 24, 2023 · 0 comments

Comments

@Dan6erbond
Copy link

Hey, I want to use this plugin to build my Next.js site both when pushed to main and a pull request is opened. But when using the trigger for pull_request I see this output in the logs:

time="2023-09-24T15:42:22Z" level=info msg="skipping automated docker build for refs/pull/80/head"

My pipeline configuration is as follows:

kind: pipeline
type: kubernetes
name: build docker image on pr

steps:
  - name: build image
    image: plugins/docker
    environment:
      NEXT_PUBLIC_CMS_URL: <redacted>
    settings:
      repo: <redacted>
      registry: <redacted>
      username:
        from_secret: docker_username
      password:
        from_secret: docker_password
      build_args_from_env:
        - <redacted>
      auto_tag: true

trigger:
  event:
    - pull_request

Does this plugin do this because of auto_tag: true? Is there a way to include the PR name in the tag maybe to solve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant