mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-02-26 19:55:04 +01:00
Switch to GitLab pages
This commit is contained in:
parent
8c1c4640b8
commit
e3ae3c862f
1 changed files with 16 additions and 0 deletions
|
@ -11,3 +11,19 @@ hydra-master:
|
|||
image: nixos/nix
|
||||
script:
|
||||
- nix-shell -I nixpkgs=channel:nixos-22.05 -p hydra-cli --run 'hydra-cli -H https://hydra.nix-community.org jobset-wait simple-nixos-mailserver master'
|
||||
|
||||
deploy-pages:
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == 'master'
|
||||
- if: $CI_COMMIT_BRANCH =~ /nixos-/
|
||||
- if: $CI_COMMIT_BRANCH == 'gitlab-pages'
|
||||
image: nixos/nix
|
||||
script:
|
||||
- nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#documentation --out-link public
|
||||
- cp -r public/ "$CI_COMMIT_BRANCH"
|
||||
pages: true
|
||||
artifacts:
|
||||
name: "$CI_COMMIT_BRANCH"
|
||||
paths:
|
||||
- "$CI_COMMIT_BRANCH"
|
||||
expire_in: 2 year
|
||||
|
|
Loading…
Add table
Reference in a new issue