From 49b959aee59a27ad9dd5507e1694c2f4aead6df4 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Wed, 20 May 2026 08:47:16 -0400 Subject: [PATCH] Add CI Docker image with Go 1.23 + Node 22 pre-installed, update workflow to use go-react label --- .gitea/workflows/dev.yml | 14 ++------------ ci-image/Dockerfile | 11 +++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 ci-image/Dockerfile diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index fdb1bbf..52dd854 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -13,16 +13,11 @@ env: jobs: test-and-build: - runs-on: ubuntu-dotnet + runs-on: go-react steps: - uses: actions/checkout@v4 - - name: Setup Go - run: | - curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz | tar -C /usr/local -xz - echo "/usr/local/go/bin" >> $GITHUB_PATH - - name: Run backend tests run: go test ./... working-directory: ./go-backend @@ -31,11 +26,6 @@ jobs: run: go build -ldflags="-w -s" -o /tmp/server ./cmd/server working-directory: ./go-backend - - name: Setup Node - run: | - curl -sL https://deb.nodesource.com/setup_22.x | bash - - apt-get install -y nodejs - - name: Install frontend deps run: npm ci working-directory: ./frontend @@ -51,7 +41,7 @@ jobs: docker-build-push: needs: test-and-build if: gitea.event_name == 'push' - runs-on: ubuntu-dotnet + runs-on: go-react steps: - uses: actions/checkout@v4 diff --git a/ci-image/Dockerfile b/ci-image/Dockerfile new file mode 100644 index 0000000..8433101 --- /dev/null +++ b/ci-image/Dockerfile @@ -0,0 +1,11 @@ +FROM catthehacker/ubuntu:act-latest + +# Install Go 1.23 +RUN curl -sL https://go.dev/dl/go1.23.6.linux-amd64.tar.gz | tar -C /usr/local -xz + +# Install Node 22 +RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ + && apt-get install -y nodejs \ + && rm -rf /var/lib/apt/lists/* + +ENV PATH="/usr/local/go/bin:${PATH}"