From 7c0e47402c5b7448f4cea5372e902eef8a8eb587 Mon Sep 17 00:00:00 2001 From: Arc <90333108+lastarc@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:57:51 +0100 Subject: [PATCH] fix github actions to accomodate new folder structure --- .github/workflows/docker-publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d61d04a..51b8cf8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,12 +2,19 @@ name: Docker on: push: + paths: + - "bot/**" + - ".github/**" branches: - "main" +defaults: + run: + working-directory: "bot" + env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: ${{ github.repository }}-bot jobs: @@ -38,7 +45,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 with: - context: . + context: ./bot platforms: linux/amd64,linux/arm64 push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest