From 9130ee4b03a1c7b9f0585618a4d5c0c6dd80bb01 Mon Sep 17 00:00:00 2001 From: TapTap Date: Sat, 18 Jul 2026 15:15:26 +0200 Subject: [PATCH] ci: use custom Docker image with build tools pre-installed --- .gitea/workflows/ci.yaml | 6 +----- Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index eecd7ce..bddb96a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -5,15 +5,11 @@ on: [push, pull_request] jobs: build-and-test: runs-on: ubuntu-latest + container: gitea.tap-tap.win/taptap/fastsync-ci:latest steps: - name: Checkout uses: actions/checkout@v4 - - name: Install dependencies - run: | - sudo apt-get update - sudo apt-get install -y --no-install-recommends gcc cmake libzstd-dev - - name: Configure run: cmake -B build -S . diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9d32c97 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM ubuntu:24.04 +RUN apt-get update && apt-get install -y --no-install-recommends \ + gcc cmake libzstd-dev git ca-certificates && \ + rm -rf /var/lib/apt/lists/*