Skip to content

Commit

Permalink
fix: docker multiarch (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiascibien authored Nov 4, 2022
1 parent 6724e0c commit 1ffdd75
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ stages:
continueOnError: false
steps:
- task: Docker@2
inputs:
command: 'build'
Dockerfile: '**/Dockerfile'
- task: Docker@2
displayName: 'Login To DockerHub'
inputs:
containerRegistry: 'DockerHub'
repository: 'mattiascibien/image-search-bot'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
tags: |
$(Build.BuildNumber)
latest
command: 'login'
- bash: docker buildx create --bootstrap --driver docker-container --use --platform linux/amd64,linux/arm64
displayName: 'Create multi-arch Docker Builder'
- bash: cd $(Build.SourcesDirectory)/MonMusique.Bot/ && docker buildx build --no-cache --push --platform linux/amd64,linux/arm64 -f Dockerfile --tag mattiascibien/image-search-bot:latest --tag mattiascibien/image-search-bot:$(tag) .
displayName: 'Build and push Image'

0 comments on commit 1ffdd75

Please sign in to comment.