diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index cf2986a0..e471ed46 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -8,7 +8,7 @@ on: jobs: build_deploy: name: Build and Deploy - runs-on: ubuntu-latest + runs-on: self-hosted permissions: contents: read packages: write @@ -23,7 +23,6 @@ jobs: images: atendai/evolution-api tags: | type=semver,pattern=v{{version}} - type=semver,pattern=v{{major}}.{{minor}} - name: Set up QEMU uses: docker/setup-qemu-action@v3 diff --git a/.github/workflows/publish_docker_image_homolog.yml b/.github/workflows/publish_docker_image_homolog.yml new file mode 100644 index 00000000..a9fb9b70 --- /dev/null +++ b/.github/workflows/publish_docker_image_homolog.yml @@ -0,0 +1,49 @@ +name: Build Docker image Homolog + +on: + push: + branches: + - develop + +jobs: + build_deploy: + name: Build and Deploy + runs-on: self-hosted + permissions: + contents: read + packages: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: atendai/evolution-api + tags: | + type=semver,pattern=homolog + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v5 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 35cab59a..de7e88ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * 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) * New global mode for rabbitmq events +* Build in docker for linux/amd64, linux/arm64 platforms ### Fixed * Correction in message formatting when generated by AI as markdown in typebot