From 3f8f771f18ab2726eec3710d7485efcdb9358097 Mon Sep 17 00:00:00 2001 From: CarelessInternet <59174259+CarelessInternet@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:15:05 +0100 Subject: [PATCH] fix(.github): add specific platforms (#403) --- .github/workflows/push_image.yml | 2 +- apps/website/src/app/[locale]/docs/self-hosting/page.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index d62c7dca..03d63756 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -35,5 +35,5 @@ jobs: env: DOCKERFILE_ROUTE: ./apps/bot/Dockerfile run: | - docker build --file ${{ env.DOCKERFILE_ROUTE }} . --no-cache --tag ${{ env.FULL_IMAGE_URL_BOT }} + docker build --file ${{ env.DOCKERFILE_ROUTE }} . --no-cache --platform linux/amd64,linux/arm64 --tag ${{ env.FULL_IMAGE_URL_BOT }} docker push ${{ env.FULL_IMAGE_URL_BOT }} diff --git a/apps/website/src/app/[locale]/docs/self-hosting/page.tsx b/apps/website/src/app/[locale]/docs/self-hosting/page.tsx index 862058ab..d1415a0e 100644 --- a/apps/website/src/app/[locale]/docs/self-hosting/page.tsx +++ b/apps/website/src/app/[locale]/docs/self-hosting/page.tsx @@ -42,8 +42,10 @@ services: bot: container_name: ticketer-bot - # You can change "latest" to any available version such as "3.2.0". - image: ghcr.io/carelessinternet/ticketer-bot:latest + # You can change to any available version such as "3.2.1". + image: ghcr.io/carelessinternet/ticketer-bot:3.2.1 + # Change the platform to the one on your linux environment (amd64, arm64). + platform: linux/arm64 restart: unless-stopped depends_on: database: