mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
Goodbye drone
This commit is contained in:
parent
4ae22ef5ce
commit
46a19bebd7
1 changed files with 0 additions and 170 deletions
170
.drone.yml
170
.drone.yml
|
@ -1,170 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: Build all configurations
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
|
||||
- name: Show flake info
|
||||
commands:
|
||||
- nix --experimental-features "nix-command flakes" flake show
|
||||
- nix --experimental-features "nix-command flakes" flake metadata
|
||||
|
||||
- name: Run flake checks
|
||||
commands:
|
||||
- nix --experimental-features "nix-command flakes" flake check --show-trace
|
||||
|
||||
- name: Build lisa
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.lisa.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
|
||||
- name: Build newton
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.newton.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
|
||||
- name: Build tower
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.tower.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
|
||||
- name: Build lambda
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.lambda.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: Build custom packages
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
|
||||
- name: Build tinystatus
|
||||
commands:
|
||||
- nix build .#tinystatus
|
||||
|
||||
- name: Build htpdate
|
||||
commands:
|
||||
- nix build .#htpdate
|
||||
|
||||
- name: Build flaresolverr
|
||||
commands:
|
||||
- nix build .#flaresolverr
|
||||
|
||||
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: Update flake
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
|
||||
- name: create old builds
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.lisa.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result lisa-old
|
||||
- nix build -v '.#nixosConfigurations.newton.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result newton-old
|
||||
- nix build -v '.#nixosConfigurations.tower.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result tower-old
|
||||
- nix build -v '.#nixosConfigurations.lambda.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result lambda-old
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: flake update
|
||||
commands:
|
||||
- nix --experimental-features "nix-command flakes" flake update --inputs-from nixpkgs
|
||||
|
||||
- name: Show git diff
|
||||
commands:
|
||||
- git diff
|
||||
|
||||
- name: Show flake info
|
||||
commands:
|
||||
- nix --experimental-features "nix-command flakes" flake show
|
||||
- nix --experimental-features "nix-command flakes" flake metadata
|
||||
- nix --experimental-features "nix-command flakes" flake check
|
||||
|
||||
- name: Run flake checks
|
||||
commands:
|
||||
- nix --experimental-features "nix-command flakes" flake check --show-trace
|
||||
|
||||
- name: Build lisa
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.lisa.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result lisa-new
|
||||
|
||||
- name: Build newton
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.newton.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result newton-new
|
||||
|
||||
- name: build tower
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.tower.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result tower-new
|
||||
|
||||
- name: build lambda
|
||||
commands:
|
||||
- nix build -v '.#nixosConfigurations.lambda.config.system.build.toplevel' --option binary-caches "https://cache.nixos.org"
|
||||
- mv result lambda-new
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Print report
|
||||
commands:
|
||||
- echo "lisa:" && nix store diff-closures $(readlink -f lisa-old) $(readlink -f lisa-new)
|
||||
- echo "newton:" && nix store diff-closures $(readlink -f newton-old) $(readlink -f newton-new)
|
||||
- echo "tower:" && nix store diff-closures $(readlink -f tower-old) $(readlink -f tower-new)
|
||||
- echo "lambda:" && nix store diff-closures $(readlink -f lambda-old) $(readlink -f lambda-new)
|
||||
|
||||
|
||||
- name: Push update
|
||||
commands:
|
||||
- git checkout -b flake-update
|
||||
- git add flake.lock
|
||||
- git commit -m "Updated flake lock"
|
||||
- git config --add url."git@github.com:".insteadOf "https://github.com/"
|
||||
- git config core.sshCommand 'ssh -i /home/drone/.ssh/id_ed25519'
|
||||
- git push --force --set-upstream origin flake-update
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- pull_request
|
||||
- cron
|
Loading…
Add table
Reference in a new issue