Skip to content

Commit

Permalink
Added experimental arm32 support
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed Jan 12, 2020
1 parent 931e207 commit 26c36fe
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,51 @@ stages:



- job: build_docker_arm32
displayName: "Docker arm32"
pool:
name: winromulus
demands:
- Agent.OSArchitecture -equals ARM
steps:

- script: |
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io
displayName: 'Install docker'
- task: Docker@2
displayName: 'Build arm32 image'
inputs:
containerRegistry: 'Emberstack Docker Hub'
repository: $(imageRepository)
Dockerfile: ES.SFTP.Host/Dockerfile
command: build
buildContext: .
tags: 'build-$(Build.BuildNumber)-arm32'

- task: Docker@2
displayName: "Push image"
inputs:
containerRegistry: "Emberstack Docker Hub"
repository: $(imageRepository)
command: push
tags: |
build-$(Build.BuildNumber)-arm32
- job: build_docker_amd64
displayName: "Docker amd64"
pool:
Expand Down

0 comments on commit 26c36fe

Please sign in to comment.