From 80b691f9c76dbae1cf6d3de0611a57809c38cde6 Mon Sep 17 00:00:00 2001 From: Mattias Wiberg Date: Thu, 5 Jun 2025 21:19:06 +0200 Subject: [PATCH] ci: install node --- .forgejo/workflows/build-and-deploy.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build-and-deploy.yaml b/.forgejo/workflows/build-and-deploy.yaml index f9d4755..5c33039 100644 --- a/.forgejo/workflows/build-and-deploy.yaml +++ b/.forgejo/workflows/build-and-deploy.yaml @@ -16,8 +16,14 @@ env: jobs: build-and-push: - runs-on: ubntu-server-25.04 + runs-on: microk8s steps: + - name: Install Node.js + run: | + # Install Node.js which is required for the checkout action + sudo apt-get update + sudo apt-get install -y nodejs npm + - name: Checkout code uses: actions/checkout@v3 @@ -54,10 +60,9 @@ jobs: # Push the image with version tag and latest tag docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.VERSION_TAG }} docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.LATEST_TAG }} - - deploy: + deploy: needs: build-and-push - runs-on: docker + runs-on: microk8s steps: - name: Checkout code uses: actions/checkout@v3