diff --git a/.forgejo/workflows/build-and-deploy.yaml b/.forgejo/workflows/build-and-deploy.yaml index f9d4755..f3d38eb 100644 --- a/.forgejo/workflows/build-and-deploy.yaml +++ b/.forgejo/workflows/build-and-deploy.yaml @@ -16,8 +16,15 @@ env: jobs: build-and-push: - runs-on: ubntu-server-25.04 - steps: + runs-on: microk8s + steps: + - name: Install Node.js + run: | + # Install Node.js which is required for the checkout action + # Run without sudo as we're likely running as root already + apt-get update || true + apt-get install -y nodejs npm || true + - name: Checkout code uses: actions/checkout@v3 @@ -54,10 +61,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: needs: build-and-push - runs-on: docker + runs-on: microk8s steps: - name: Checkout code uses: actions/checkout@v3