24 lines
603 B
YAML
24 lines
603 B
YAML
steps:
|
|
- name: build
|
|
image: nixos/nix
|
|
commands:
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
- nix build
|
|
- nix flake show
|
|
- nix flake info
|
|
when:
|
|
event: [push, pull_request]
|
|
|
|
- name: deploy
|
|
image: nixos/nix
|
|
commands:
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
- nix build
|
|
- ls result
|
|
- nix develop --command wrangler pages deploy result --branch=$CI_COMMIT_SOURCE_BRANCH --project-name=softinio
|
|
depends_on: [build]
|
|
when:
|
|
event: push
|
|
branch: test1
|
|
|