forked from pleasanthill17/teslamate-abrp
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (30 loc) · 965 Bytes
/
build.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
# !NOTE: This action is deprecated and currently disabled.
# Build for amd64 and arm64 and publish to DockerHub
name: build
on:
push:
branches: [ main ]
jobs:
buildx:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/[email protected]
- name: Setup buildx
id: buildx
uses: docker/[email protected]
- name: Echo available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build the images
run: |
docker buildx build \
--push \
--tag ${{ secrets.DOCKER_USERNAME }}/teslamate-abrp:latest \
--platform linux/amd64,linux/arm64,linux/arm/v7 .