From f6e2fa9e2747dc26d562225cd0c9294bbf6db67b Mon Sep 17 00:00:00 2001 From: Youssef Aridhi Date: Fri, 3 Apr 2026 16:44:34 +0100 Subject: [PATCH] Add artifact upload and download steps for GeoLite2 City database in CI workflow --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16f57b5..f852d83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,13 @@ jobs: - name: go test run: go test ./... + - name: Upload GeoLite2 artifact + uses: actions/upload-artifact@v4 + with: + name: geolite2-city-mmdb + path: data/GeoLite2-City.mmdb + if-no-files-found: error + lint: name: Lint runs-on: ubuntu-latest @@ -65,6 +72,12 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Download GeoLite2 artifact + uses: actions/download-artifact@v4 + with: + name: geolite2-city-mmdb + path: data + - name: Build Docker image (no push) if: github.event_name == 'pull_request' uses: docker/build-push-action@v6