mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-03 18:46:40 -07:00
update woodpecker config
This commit is contained in:
parent
5ed9282f10
commit
8768a8e395
1 changed files with 11 additions and 4 deletions
|
@ -3,13 +3,17 @@ steps:
|
|||
image: nixos/nix
|
||||
commands:
|
||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||
- nix profile install nixpkgs#gnused --impure
|
||||
- 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_BRANCH --project-name=softinio --commit-dirty=true
|
||||
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
||||
environment:
|
||||
CLOUDFLARE_ACCOUNT_ID:
|
||||
from_secret: cloudflare_account_id
|
||||
CLOUDFLARE_API_TOKEN:
|
||||
from_secret: cloudflare_api_token
|
||||
when:
|
||||
event: [push]
|
||||
branch:
|
||||
|
@ -21,8 +25,11 @@ steps:
|
|||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||
- nix build
|
||||
- nix develop --command wrangler pages deploy result --project-name=softinio --commit-dirty=true
|
||||
secrets: [ cloudflare_account_id, cloudflare_api_token ]
|
||||
environment:
|
||||
CLOUDFLARE_ACCOUNT_ID:
|
||||
from_secret: cloudflare_account_id
|
||||
CLOUDFLARE_API_TOKEN:
|
||||
from_secret: cloudflare_api_token
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue