ci: install node

This commit is contained in:
Mattias Wiberg 2025-06-05 21:19:06 +02:00
parent f892ac0016
commit 80b691f9c7

View file

@ -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