From d30f404b4e3190dd8517bc9fbf4cfae9a9b2f549 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Fri, 18 Oct 2024 19:50:09 +0100 Subject: [PATCH] Do docker setup _before_ build, it's overwriting the _site directory --- .gitea/workflows/build-and-copy.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml index cbc07d9..149b994 100644 --- a/.gitea/workflows/build-and-copy.yaml +++ b/.gitea/workflows/build-and-copy.yaml @@ -15,6 +15,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: 20.x + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to gitea container registry + uses: docker/login-action@v3 + with: + registry: git.lewisdale.dev + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Install dependencies 📦 run: npm ci - name: Cache build @@ -39,16 +49,6 @@ jobs: NODE_ENV: production OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }} UMAMI_API_KEY: ${{ secrets.UMAMI_API_KEY }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to gitea container registry - uses: docker/login-action@v3 - with: - registry: git.lewisdale.dev - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push uses: docker/build-push-action@v6 with: