-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (38 loc) · 977 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
trigger:
branches:
include:
- main
pr: none
variables:
- name: tag
value: latest
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install Node.js'
- script: |
npm install -g @devcontainers/cli
displayName: 'npm install devcontainer'
- task: DockerInstaller@0
displayName: "Docker Installer"
inputs:
dockerVersion: 27.3.1
releaseType: stable
- task: Docker@2
displayName: Login to DockerHub
inputs:
command: login
containerRegistry: dockerhub-connection
- script: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use
displayName: configure multi-arch and buildx
- script: |
devcontainer build --workspace-folder=. \
--image-name=edgenesis/devcontainer-go:$(tag) \
--image-name=edgehub/devcontainer-go:$(tag) \
--platform=linux/amd64,linux/arm64 --push
displayName: 'build and push devcontainer'