[Buildkite] Fix pipeline to work alongside dependabot (#706)

This change will continue to perform unit and integration testing, however, disables deployment steps in association with dependabot PRs.
Deployment comments on the PR with autheliabot are also disabled.
pull/707/head
Amir Zarrinkafsh 2020-03-15 13:49:57 +11:00 committed by GitHub
parent 0d9a5812c7
commit cd561ef094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -20,10 +20,10 @@ steps:
- label: ":docker: Image Deployments" - label: ":docker: Image Deployments"
command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload"
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true" if: build.branch != "master" && build.branch !~ /^dependabot\/.*/ && build.env("CI_DOCS_BYPASS") != "true"
- wait: - wait:
if: build.env("CI_DOCS_BYPASS") != "true" if: build.branch !~ /^dependabot\/.*/ && build.env("CI_DOCS_BYPASS") != "true"
- label: ":docker: Deploy Manifests" - label: ":docker: Deploy Manifests"
command: "authelia-scripts docker push-manifest" command: "authelia-scripts docker push-manifest"
@ -37,7 +37,7 @@ steps:
command: "authelia-scripts docker push-manifest" command: "authelia-scripts docker push-manifest"
env: env:
DOCKER_CLI_EXPERIMENTAL: "enabled" DOCKER_CLI_EXPERIMENTAL: "enabled"
if: build.branch != "master" && build.env("CI_DOCS_BYPASS") != "true" if: build.branch != "master" && build.branch !~ /^dependabot\/.*/ && build.env("CI_DOCS_BYPASS") != "true"
- label: ":github: Deploy Artifacts" - label: ":github: Deploy Artifacts"
command: "ghartifacts.sh" command: "ghartifacts.sh"

4
.github/probot.js vendored
View File

@ -4,6 +4,10 @@ on('pull_request.opened')
context => context =>
context.payload.pull_request.head.label.slice(0, 9) === 'authelia:' context.payload.pull_request.head.label.slice(0, 9) === 'authelia:'
) )
.filter(
context =>
context.payload.pull_request.head.ref.slice(0, 11) !== 'dependabot/'
)
.comment(`# Docker Container .comment(`# Docker Container
These changes are published for testing at the following location: These changes are published for testing at the following location:
* \`docker pull authelia/authelia:{{ pull_request.head.ref }}\``) * \`docker pull authelia/authelia:{{ pull_request.head.ref }}\``)