-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (36 loc) · 1.04 KB
/
ci.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
name: meta-agent-docker-ci
on: [push, workflow_dispatch]
jobs:
docker-build-multiarch:
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Available Platforms
run: echo ${{ steps.buildx.outputs.platforms }}
-
name: Login to hub.docker.com
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Build Docker Image
run: |
VERSION=`./version.sh`
echo Version: ${VERSION}
docker buildx build \
--platform linux/amd64,linux/arm/v7,linux/arm64 \
--output "type=image,push=true" \
--tag macchina/device-agent:latest \
--tag macchina/device-agent:${VERSION} \
--file ./Dockerfile .