aboutsummaryrefslogtreecommitdiffstats
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml22
1 files changed, 9 insertions, 13 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index c98bc4fc..89205c1e 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -33,20 +33,16 @@ jobs:
displayName: 'Run linter'
- job: build
- displayName: 'Build Containers'
+ displayName: 'Build & Push Container'
+ condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
dependsOn: 'test'
steps:
- - task: Docker@1
- displayName: 'Login: Docker Hub'
-
- inputs:
- containerregistrytype: 'Container Registry'
- dockerRegistryEndpoint: 'DockerHub'
- command: 'login'
-
- - task: ShellScript@2
- displayName: 'Build and deploy containers'
-
+ - task: Docker@2
+ displayName: 'Build & Push Container'
inputs:
- scriptPath: scripts/deploy-azure.sh
+ containerRegistry: 'DockerHub'
+ repository: 'pythondiscord/seasonalbot'
+ command: 'buildAndPush'
+ Dockerfile: '**/Dockerfile'
+ tags: 'latest'