Skip to content

Ensure docker containers are published only for master branch builds.#264

Merged
scragly merged 1 commit into
masterfrom
build-docker-on-master-only
Sep 27, 2019
Merged

Ensure docker containers are published only for master branch builds.#264
scragly merged 1 commit into
masterfrom
build-docker-on-master-only

Conversation

@scragly
Copy link
Copy Markdown
Contributor

@scragly scragly commented Sep 27, 2019

If an Azure Pipeline was started manually, it would no longer have PullRequest as the build reason, allowing the build and push job conditions to pass even if on a different branch than master.

This addition ensures the source branch is master for any situation that the CI runs.

Similar situation as to python-discord/bot#463

@scragly scragly merged commit b19c5f9 into master Sep 27, 2019
@scragly scragly deleted the build-docker-on-master-only branch September 27, 2019 13:27
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

Successfully merging this pull request may close these issues.

2 participants