NixOS-based container for running GitHub actions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test building with runner on gh

+43
+43
.github/workflows/build2.yaml
··· 1 + # SPDX-FileCopyrightText: © 2023 Jeffrey C. Ollie 2 + # SPDX-License-Identifier: MIT 3 + 4 + name: build nixos-runner alternate 5 + 6 + on: 7 + push: 8 + branches: 9 + - main 10 + 11 + concurrency: 12 + group: ${{ github.workflow }}-${{ github.ref }} 13 + cancel-in-progress: true 14 + 15 + jobs: 16 + build: 17 + runs-on: ubuntu-latest 18 + container: ghcr.io/jcollie/nixos-runner:latest 19 + permissions: 20 + id-token: write 21 + contents: read 22 + packages: write 23 + steps: 24 + - name: Checkout code 25 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 26 + with: 27 + fetch-depth: 0 28 + 29 + - name: Reuse Lint 30 + run: | 31 + nix run .#reuse-lint 32 + 33 + - name: Build 34 + run: | 35 + nix build -L .#nixos-runner 36 + 37 + - name: Push container 38 + run: nix run .#push-container -- result 39 + env: 40 + REGISTRY: ghcr.io 41 + REPOSITORY: ${{ github.repository_owner }}/nixos-runner 42 + USERNAME: ${{ github.actor }} 43 + PASSWORD: ${{ github.token }}