2024-08-11 19:02:39 +00:00
|
|
|
name: Image Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-08-11 19:31:36 +00:00
|
|
|
push:
|
2024-08-11 19:02:39 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
prepare:
|
|
|
|
name: Prepare to Build
|
|
|
|
runs-on: ubuntu-latest-docker
|
|
|
|
container:
|
|
|
|
image: node:18
|
|
|
|
steps:
|
2024-08-11 19:29:26 +00:00
|
|
|
- name: Install deps
|
2024-08-11 19:29:55 +00:00
|
|
|
run: apt update && apt -y install sudo
|
2024-08-11 19:26:56 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Nix
|
2024-08-11 19:28:10 +00:00
|
|
|
uses: https://github.com/cachix/install-nix-action@v27
|
2024-08-11 19:40:27 +00:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2024-08-11 19:26:56 +00:00
|
|
|
# # Mostly to avoid GitHub rate limiting
|
|
|
|
# extra_nix_config: |
|
|
|
|
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# # Note: this would only work if Cargo is included in the Nix shell
|
|
|
|
- name: Build release
|
2024-08-11 19:37:23 +00:00
|
|
|
run: nix build .#container --impure
|