Compare commits

...

3 Commits

Author SHA1 Message Date
Joshua King
49b959aee5 Add CI Docker image with Go 1.23 + Node 22 pre-installed, update workflow to use go-react label
Some checks are pending
Dev Build & Deploy / test-and-build (push) Waiting to run
Dev Build & Deploy / docker-build-push (push) Blocked by required conditions
2026-05-20 08:47:16 -04:00
Joshua King
ae37d79aa8 Switch to ubuntu-dotnet runner label to bypass /var/run symlink issue
Some checks failed
Dev Build & Deploy / test-and-build (push) Has been cancelled
Dev Build & Deploy / docker-build-push (push) Has been cancelled
2026-05-20 08:39:05 -04:00
Joshua King
8fb4183abe Add container spec to fix /var/run symlink path escape error
Some checks failed
Dev Build & Deploy / test-and-build (push) Failing after 7s
Dev Build & Deploy / docker-build-push (push) Has been skipped
2026-05-20 08:30:49 -04:00
2 changed files with 13 additions and 12 deletions

View File

@@ -13,16 +13,11 @@ env:
jobs:
test-and-build:
runs-on: ubuntu-latest
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-latest
runs-on: go-react
steps:
- uses: actions/checkout@v4

11
ci-image/Dockerfile Normal file
View File

@@ -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}"