Skip to content

Commit 093ea10

Browse files
authored
Build docker images for armv7 and amd64 (#23)
* so it can run on modern pcs aswell as pi * remove zigbee2mqtt build, because this branch doesn't exist anymore
1 parent 8abdf69 commit 093ea10

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/main.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
push:
55
branches: [ "master", "develop" ]
66
pull_request:
7-
branches: [ "master", "develop", "feature/zigbee2mqtt" ]
7+
branches: [ "master", "develop" ]
88
workflow_dispatch:
99
# Enable manual run
1010

1111

1212
env:
1313
REGISTRY: ghcr.io
14-
IMAGE_NAME: tcpproxy
1514
REPO_NAME: ${{ github.repository }}
1615

1716
jobs:
@@ -24,12 +23,12 @@ jobs:
2423
steps:
2524
- name: Checkout repository
2625
uses: actions/checkout@v3
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v2
2926
- name: Set up QEMU
3027
uses: docker/setup-qemu-action@v2
3128
with:
32-
platforms: 'arm64,arm'
29+
platforms: 'amd64,arm'
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v2
3332
- name: Get Git Submodules
3433
run: git submodule update --init --recursive
3534

@@ -47,20 +46,23 @@ jobs:
4746
images: |
4847
${{ env.REGISTRY }}/${{ env.REPO_NAME }}
4948
50-
- name: Build TCPProxy and push Docker image
49+
- name: Build AppBroker and push Docker image
5150
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
5251
with:
5352
context: .
54-
file: TcpProxy/Dockerfile
55-
push: ${{ github.event_name == 'push' }}
56-
tags: susch19/appbroker-tcpproxy:latest
53+
platforms: linux/amd64,linux/arm/v7
54+
file: AppBrokerASP/Dockerfile
55+
push: ${{ github.event_name != 'pull_request' }}
56+
tags: ghcr.io/susch19/appbroker:latest
5757
labels: ${{ steps.meta.outputs.labels }}
5858

59-
- name: Build AppBroker and push Docker image
59+
- name: Build TCPProxy and push Docker image
6060
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
6161
with:
6262
context: .
63-
file: AppBrokerASP/Dockerfile
64-
push: ${{ github.event_name == 'push' }}
65-
tags: susch19/appbroker:latest
63+
platforms: linux/amd64,linux/arm/v7
64+
file: TcpProxy/Dockerfile
65+
push: ${{ github.event_name != 'pull_request' }}
66+
tags: ghcr.io/susch19/appbroker-tcpproxy:latest
6667
labels: ${{ steps.meta.outputs.labels }}
68+

0 commit comments

Comments
 (0)