softinio.com/.woodpecker.yml
Salar Rahmanian 5f5cab251c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
install sed for ci using nix develop 2
2024-02-17 10:59:54 -08:00

28 lines
1 KiB
YAML

steps:
- name: build
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix develop nixpkgs#gnused --command bash -c "sed -i 's/base_url = "https:\/\/www.softinio.com"/base_url = "https:\/\/${CI_COMMIT_SOURCE_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
secrets: [ cloudflare_account_id, cloudflare_api_token ]
when:
event: [push, pull_request]
branch:
exclude: [ main ]
- name: deploy
image: nixos/nix
commands:
- 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 ]
when:
event: push
branch: main