diff --git a/.forgejo/workflows/build-and-deploy.yaml b/.forgejo/workflows/build-and-deploy.yaml index f9d4755..78b24d3 100644 --- a/.forgejo/workflows/build-and-deploy.yaml +++ b/.forgejo/workflows/build-and-deploy.yaml @@ -16,10 +16,20 @@ env: jobs: build-and-push: - runs-on: ubntu-server-25.04 + runs-on: microk8s steps: - name: Checkout code uses: actions/checkout@v3 + with: + # Skip post-checkout step that requires node + fetch-depth: 1 + submodules: recursive + + - 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: Set up Docker Buildx run: | @@ -54,13 +64,16 @@ 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 + with: + # Skip post-checkout step that requires node + fetch-depth: 1 + submodules: recursive # Generate the same version tag as build-and-push job - name: Generate version tag