forked from ergoMixer/ergoMixBack
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.09 KB
/
buildx.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
name: ci
on:
push:
jobs:
buildx:
runs-on: ubuntu-latest
env:
DOCKER_TARGET_PLATFORM: linux/amd64
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
-
name: Set up QEMU
if: success()
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
if: success()
id: buildx
uses: docker/setup-buildx-action@v1
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build/push ergomixer amd64 docker image
if: success()
run: docker buildx build --platform linux/amd64 --tag luivatra/mixer:latest --output type=image,push=true .
-
name: Build/push ergomixer arm64 docker image
if: success()
run: docker buildx build --platform linux/arm64 --tag luivatra/mixer:latest-arm64 --file Dockerfile-ARM64 --output type=image,push=true .