diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 03d6375..2c18f7e 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -16,6 +16,11 @@ jobs: packages: write steps: - uses: actions/checkout@v4 + - name: Set up QEMU. + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx. + uses: docker/setup-buildx-action@v3 + - uses: actions/checkout@v4 - name: Log in to the GitHub Container Registry. uses: docker/login-action@v3 with: @@ -30,10 +35,15 @@ jobs: run: | RELEASE_VERSION=${GITHUB_REF#refs/*/v} IMAGE_REPOSITORY_BOT=${RAW_IMAGE_REPOSITORY@L}-bot - echo "FULL_IMAGE_URL_BOT=${REGISTRY}/$IMAGE_REPOSITORY_BOT:$RELEASE_VERSION" >> ${GITHUB_ENV} + IMAGE_URL_BOT=${REGISTRY}/$IMAGE_REPOSITORY_BOT + echo "FULL_IMAGE_URL_BOT_LATEST=$IMAGE_URL_BOT:latest" >> ${GITHUB_ENV} + echo "FULL_IMAGE_URL_BOT_VERSION=$IMAGE_URL_BOT:$RELEASE_VERSION" >> ${GITHUB_ENV} - name: Build and push the bot image. - env: - DOCKERFILE_ROUTE: ./apps/bot/Dockerfile - run: | - 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 }} + uses: docker/build-push-action@v6 + with: + file: ./apps/bot/Dockerfile + context: . + no-cache: true + platforms: linux/amd64,linux/arm64 + tags: ${{ env.FULL_IMAGE_URL_BOT_LATEST }}, ${{ env.FULL_IMAGE_URL_BOT_VERSION }} + push: true 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 d1415a0..11bee5f 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,8 @@ services: bot: container_name: ticketer-bot - # You can change to any available version such as "3.2.1". - image: ghcr.io/carelessinternet/ticketer-bot:3.2.1 + # You can change "latest" to any available version such as "3.2.2". + image: ghcr.io/carelessinternet/ticketer-bot:3.2.2 # Change the platform to the one on your linux environment (amd64, arm64). platform: linux/arm64 restart: unless-stopped