diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21bcc5b..51a8a9a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -36,7 +36,13 @@ jobs: - uses: actions/checkout@v4 - name: Test - run: clojure -M:test + run: | + docker run --rm --network host \ + -e TARGET_HOST -e TARGET_PORT -e TARGET_DB \ + -e TARGET_USER -e TARGET_PASSWORD \ + -v "$PWD:/app" -w /app \ + clojure:temurin-21-tools-deps-alpine \ + clojure -M:test - name: Generate immutable tags id: tags diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 8e5df9b..e1c176e 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -31,7 +31,13 @@ jobs: - uses: actions/checkout@v4 - name: Test - run: clojure -M:test + run: | + docker run --rm --network host \ + -e TARGET_HOST -e TARGET_PORT -e TARGET_DB \ + -e TARGET_USER -e TARGET_PASSWORD \ + -v "$PWD:/app" -w /app \ + clojure:temurin-21-tools-deps-alpine \ + clojure -M:test - name: Build production image run: docker build --platform linux/amd64 -t elprice:pr-check .