Why do you need to have node installed to run setup-node?
This commit is contained in:
parent
380bb4e55a
commit
13d1ded709
2 changed files with 21 additions and 6 deletions
11
.forgejo/runner/Dockerfile
Normal file
11
.forgejo/runner/Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM barichello/godot-ci:4.5.1
|
||||||
|
|
||||||
|
# Install Node 24 from Alpine
|
||||||
|
RUN apt-get update && apt-get install -y curl \
|
||||||
|
&& curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
|
||||||
|
&& apt-get install -y nodejs \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Verify installations
|
||||||
|
RUN node --version
|
||||||
|
|
||||||
|
|
@ -8,16 +8,20 @@ on:
|
||||||
- "v*.*.*" # only match version tags like v1.0.0
|
- "v*.*.*" # only match version tags like v1.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
prepare:
|
||||||
|
name: Build & push runner image
|
||||||
|
runs-on: docker-cli-node24 # the label of your runner
|
||||||
|
steps:
|
||||||
|
- name: Build & push runner image
|
||||||
|
run: |
|
||||||
|
docker build --network=host -t ${{ vars.REGISTRY_URL }}/asteroids/runner:latest -f .forgejo/runner/Dockerfile .
|
||||||
|
docker push ${{ vars.REGISTRY_URL }}/asteroids/runner:latest
|
||||||
|
|
||||||
export:
|
export:
|
||||||
runs-on: docker-cli-node24
|
runs-on: docker-cli-node24
|
||||||
container:
|
container:
|
||||||
image: barichello/godot-ci:4.5.1 # contains Godot headless + export templates
|
image: ${{ vars.REGISTRY_URL }}/asteroids/runner:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v6
|
|
||||||
with:
|
|
||||||
node-version: 24
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue