Files
imphnen-frontend-service/.github/workflows/nix-build.yml
T
maulanasdqnandClaude Opus 4.6 bbb1bae909 chore: migrate to Nix flakes, remove Docker and legacy configs
Remove all Docker files, Vercel config, Verdaccio, and old CI workflow.
Standardize on nodejs_22 across devShell and nix build helpers.
Update CI to build all packages and push to Cachix on merge to develop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 23:05:37 +07:00

44 lines
1.2 KiB
YAML

name: Nix Build & Cache
on:
push:
branches: ['develop']
pull_request:
branches: ['develop']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: msdqn
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build all packages
run: |
nix build .#landing -o result-landing
nix build .#backoffice -o result-backoffice
nix build .#gacha -o result-gacha
nix build .#dimentorin -o result-dimentorin
nix build .#hackathon -o result-hackathon
nix build .#infra -o result-infra
nix build .#qrcampaign -o result-qrcampaign
- name: Push to Cachix
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
run: |
cachix push msdqn result-landing
cachix push msdqn result-backoffice
cachix push msdqn result-gacha
cachix push msdqn result-dimentorin
cachix push msdqn result-hackathon
cachix push msdqn result-infra
cachix push msdqn result-qrcampaign