This commit is contained in:
parent
1cc49a3ff9
commit
81b1a21163
|
@ -4,8 +4,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix profile install nixpkgs#gnused --impure
|
- nix profile install nixpkgs#gnused --impure
|
||||||
- echo $CI_COMMIT_SOURCE_BRANCH
|
- echo $CI_COMMIT_BRANCH
|
||||||
- sed -i "s|base_url = "https://www.softinio.com"|base_url = "https://"$CI_COMMIT_SOURCE_BRANCH".softinio.com"|" ./config.toml
|
- sed -i "s|base_url = "https://www.softinio.com"|base_url = "https://"$CI_COMMIT_BRANCH".softinio.com"|" ./config.toml
|
||||||
- cat ./config.toml
|
- cat ./config.toml
|
||||||
- nix build
|
- nix build
|
||||||
- nix flake show
|
- nix flake show
|
||||||
|
@ -13,7 +13,7 @@ steps:
|
||||||
- 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_SOURCE_BRANCH --project-name=softinio --commit-dirty=true
|
||||||
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
||||||
when:
|
when:
|
||||||
event: [push, pull_request]
|
event: [push]
|
||||||
branch:
|
branch:
|
||||||
exclude: [ main ]
|
exclude: [ main ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue