Skip to content

Commit b5ec79d

Browse files
committed
fix: Build in docker for linux/amd64, linux/arm64 platforms
1 parent 3b19200 commit b5ec79d

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

.github/workflows/publish_docker_image.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build_deploy:
1010
name: Build and Deploy
11-
runs-on: ubuntu-latest
11+
runs-on: self-hosted
1212
permissions:
1313
contents: read
1414
packages: write
@@ -23,7 +23,6 @@ jobs:
2323
images: atendai/evolution-api
2424
tags: |
2525
type=semver,pattern=v{{version}}
26-
type=semver,pattern=v{{major}}.{{minor}}
2726
2827
- name: Set up QEMU
2928
uses: docker/setup-qemu-action@v3
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Docker image Homolog
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build_deploy:
10+
name: Build and Deploy
11+
runs-on: self-hosted
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Docker meta
20+
id: meta
21+
uses: docker/metadata-action@v5
22+
with:
23+
images: atendai/evolution-api
24+
tags: |
25+
type=semver,pattern=homolog
26+
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
30+
- name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
33+
- name: Login to GitHub Container Registry
34+
uses: docker/login-action@v3
35+
with:
36+
username: ${{ secrets.DOCKER_USERNAME }}
37+
password: ${{ secrets.DOCKER_PASSWORD }}
38+
39+
- name: Build and push
40+
id: docker_build
41+
uses: docker/build-push-action@v5
42+
with:
43+
platforms: linux/amd64,linux/arm64
44+
push: true
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}
47+
48+
- name: Image digest
49+
run: echo ${{ steps.docker_build.outputs.digest }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Now in the manager, when logging in with the client's apikey, the listing only shows the instance corresponding to the provided apikey (only with MongoDB)
66
* New global mode for rabbitmq events
7+
* Build in docker for linux/amd64, linux/arm64 platforms
78

89
### Fixed
910
* Correction in message formatting when generated by AI as markdown in typebot

0 commit comments

Comments
 (0)