mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-05 11:16:41 -07:00
Cors and preview environment updates
This commit is contained in:
parent
ed6353adf0
commit
6ed65b8d54
4 changed files with 8 additions and 8 deletions
|
@ -3,13 +3,15 @@ steps:
|
|||
image: nixos/nix
|
||||
commands:
|
||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||
- nix profile install nixpkgs#gnused --impure
|
||||
- sed -i "s|base_url = \"https://www.softinio.com\"|base_url = \"https://$CI_COMMIT_BRANCH.softinio.com\"|" ./config.toml
|
||||
- nix build
|
||||
- nix flake show
|
||||
- ls result
|
||||
- nix develop --command wrangler pages deploy result --branch=$CI_COMMIT_SOURCE_BRANCH --project-name=softinio --commit-dirty=true
|
||||
- nix develop --command wrangler pages deploy result --branch=$CI_COMMIT_BRANCH --project-name=softinio --commit-dirty=true
|
||||
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
event: [push]
|
||||
branch:
|
||||
exclude: [ main ]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue