Run NixOS tests in CI #7
This file contains 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 to cachix' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
cachix-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: welteki | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
skipPush: true | |
- name: Check flake | |
run: nix flake check -L --accept-flake-config | |
- name: Build faasd 🔧 | |
run: | | |
nix build -L .#faasd | |
nix eval --json .#faasd | jq -r | cachix push welteki | |
- name: Build containerd 🔧 | |
run: | | |
nix build -L .#faasd-containerd | |
nix eval --json .#faasd-containerd | jq -r | cachix push welteki | |
- name: Build cni-plugin 🔧 | |
run: | | |
nix build -L .#faasd-cni-plugins | |
nix eval --json .#faasd-cni-plugins | jq -r | cachix push welteki |