25 lines
670 B
YAML
25 lines
670 B
YAML
name: Image Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
|
|
jobs:
|
|
prepare:
|
|
name: Prepare to Build
|
|
runs-on: ubuntu-latest-docker
|
|
container:
|
|
image: node:18
|
|
steps:
|
|
- name: Install deps
|
|
run: apt update && apt -y install sudo
|
|
- uses: actions/checkout@v4
|
|
- name: Install Nix
|
|
uses: https://github.com/cachix/install-nix-action@v27
|
|
# with:
|
|
# # 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
|
|
run: nix build .#container --impure
|