aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index b3d4e6da..0331e67f 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -66,7 +66,7 @@ jobs:
- job: build
displayName: 'Build & Push Container'
dependsOn: test
- condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
steps:
- task: Docker@2
@@ -75,6 +75,6 @@ jobs:
containerRegistry: 'DockerHub'
repository: 'pythondiscord/site'
command: 'buildAndPush'
- Dockerfile: 'docker/app/Dockerfile'
+ Dockerfile: 'docker/Dockerfile'
buildContext: '.'
tags: 'latest'