nives 2.5.0: warn before the balance runs out #223
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push Add-on | |
| on: | |
| push: | |
| branches: [master] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| test: | |
| name: Test server | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: server/src/home-mind-server | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: server/src/home-mind-server/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Typecheck and build | |
| run: npm run build | |
| - name: Run tests | |
| run: npm test | |
| build: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - arch: amd64 | |
| platform: linux/amd64 | |
| - arch: aarch64 | |
| platform: linux/arm64 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7.0.1 | |
| with: | |
| submodules: false | |
| - name: Get add-on version | |
| id: version | |
| run: | | |
| VERSION=$(grep '^version:' nives/config.yaml | awk '{print $2}' | tr -d '"') | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4.2.0 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4.2.0 | |
| - name: Log in to GHCR | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v4.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v7.3.0 | |
| with: | |
| context: . | |
| file: ./nives/Dockerfile | |
| platforms: ${{ matrix.platform }} | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: | | |
| ghcr.io/hoornet/nives-${{ matrix.arch }}:${{ steps.version.outputs.version }} | |
| ghcr.io/hoornet/nives-${{ matrix.arch }}:latest | |
| build-args: | | |
| S6_OVERLAY_VERSION=3.2.0.2 | |
| SHODH_VERSION=v0.2.0 | |
| NODE_MAJOR=22 | |
| cache-from: type=gha,scope=${{ matrix.arch }} | |
| cache-to: type=gha,mode=max,scope=${{ matrix.arch }} |