fix: set container image for k8s runner to provide node/python

This commit is contained in:
jv 2026-09-17 22:12:43 -05:00
parent 7bb6f3f819
commit 6c570f6217
1 changed files with 10 additions and 0 deletions

View File

@ -9,12 +9,17 @@ name: Homelab Main
jobs: jobs:
validate: validate:
runs-on: k8s runs-on: k8s
container:
image: node:18-bullseye
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ gitea.sha }} ref: ${{ gitea.sha }}
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
- name: Validate repository - name: Validate repository
run: | run: |
set -euo pipefail set -euo pipefail
@ -23,6 +28,8 @@ jobs:
deploy: deploy:
runs-on: k8s runs-on: k8s
container:
image: node:18-bullseye
needs: needs:
- validate - validate
if: ${{ gitea.ref == 'refs/heads/main' }} if: ${{ gitea.ref == 'refs/heads/main' }}
@ -32,6 +39,9 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ gitea.sha }} ref: ${{ gitea.sha }}
uses: actions/checkout@v4
with:
ref: ${{ gitea.sha }}
- name: Block automatic deploy for external Gitea changes - name: Block automatic deploy for external Gitea changes
run: | run: |
set -euo pipefail set -euo pipefail