From 517f3f0329fe45c673efda2407f760b0f4dc649f Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 4 Jul 2026 10:03:31 +0000 Subject: [PATCH] CI: use docker compose build --no-cache to prevent stale images Replace build-push-action with docker compose build --no-cache to ensure the image always contains the latest code. Remove buildx action since we don't need it anymore. --- .gitea/workflows/ci.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2d0d7b2..d39ce0d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Build, Lint, and Test +name: Build and Test on: push: @@ -12,29 +12,22 @@ on: jobs: build-and-test: - name: Build, Lint, and Test + name: Build and Test runs-on: ubuntu-latest if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" env: COMPOSE_FILE: ./docker-compose.ci.yml MIX_ENV: test + DOCKER_BUILDKIT: 1 steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build docker image - uses: docker/build-push-action@v6 - with: - context: . - file: ./docker/dev.Dockerfile - load: true - - - name: Run Docker image - run: docker compose up --detach + - name: Build and run Docker image + run: | + docker compose build --no-cache + docker compose up --detach - name: Install deps run: |