-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (40 loc) · 1.13 KB
/
ci.yaml
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
# https://github.com/docker/setup-buildx-action
# https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
# https://github.com/marketplace/actions/docker-buildx
# https://github.com/crazy-max/diun/blob/master/.github/workflows/build.yml
name: Docker Image CI
on:
push:
branches:
- 'master'
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: checkout code
uses: actions/checkout@v2
-
name: Docker Buildx
id: buildx
uses: crazy-max/[email protected]
with:
buildx-version: latest
qemu-version: latest
-
name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Run Buildx
run: |
docker buildx build \
--platform linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 \
-t mirrors2/liketriple:latest . --push