2024-02-10 23:55:06 -08:00
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: nixos/nix
|
|
|
|
commands:
|
|
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
|
|
- nix build
|
2024-02-11 10:28:06 -08:00
|
|
|
- nix flake show
|
2024-02-16 20:54:59 -08:00
|
|
|
- nix flake info
|
2024-02-10 23:55:06 -08:00
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
|
|
|
|
2024-02-16 20:50:22 -08:00
|
|
|
- name: deploy
|
|
|
|
image: nixos/nix
|
|
|
|
commands:
|
|
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
2024-02-16 20:59:03 -08:00
|
|
|
- nix build
|
2024-02-16 20:54:59 -08:00
|
|
|
- ls result
|
2024-02-16 21:43:53 -08:00
|
|
|
- nix develop --command wrangler pages deploy result --branch=$CI_COMMIT_SOURCE_BRANCH --project-name=softinio
|
2024-02-16 21:50:34 -08:00
|
|
|
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
2024-02-16 21:51:43 -08:00
|
|
|
depends_on: [build]
|
2024-02-16 20:50:22 -08:00
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: test1
|
|
|
|
|