mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-03-04 00:45:39 +05:00
Switch to GitLab pages
This commit is contained in:
parent
8c1c4640b8
commit
e3ae3c862f
@ -11,3 +11,19 @@ hydra-master:
|
|||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
script:
|
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'
|
- 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…
Reference in New Issue
Block a user