Install Node.js
Der Fehler exitcode '127' bei "Checkout repository" liegt daran, dass Gitea für die offizielle actions/checkout-Aktion im Hintergrund zwingend Node.js voraussetzt. Standard-Gitea-Runner (wie z.B. das Alpine Image) haben das oft nicht ab Werk installiert. Damit wir eine 100% verlässliche Umgebung haben, bin ich jetzt wieder auf das explizite ubuntu:22.04 Image zurückgegangen und lade als Allererstes Node.js in den Container, noch bevor er das Repository auscheckt. Dann ist node sauber im Systempfad ($PATH) registriert und der Fehler 127 verschwindet.
This commit is contained in:
@@ -8,11 +8,15 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-flatpak:
|
build-flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ubuntu:22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
apt-get update
|
||||||
sudo apt-get install -y curl jq sed flatpak flatpak-builder ostree git binutils xz-utils zstd
|
apt-get install -y curl ca-certificates
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
apt-get install -y nodejs jq sed flatpak flatpak-builder ostree git binutils xz-utils zstd
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user