forked from VirtusLab/jenkins-operator
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix website build + use workflow + nixify it
- Loading branch information
1 parent
d35931a
commit 8b76e28
Showing
8 changed files
with
95 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ pkgs, system, hugo_099_pkgs }: | ||
|
||
let | ||
buildPackages = [ | ||
hugo_099_pkgs.hugo #hugo pre-v100 | ||
pkgs.nodejs_21 #Node 1.21 | ||
pkgs.nodePackages.autoprefixer | ||
pkgs.nodePackages.postcss | ||
pkgs.nodePackages.postcss-cli | ||
]; | ||
baseUrl = ((builtins.fromTOML (builtins.readFile ../website/config.toml)).baseURL); | ||
in | ||
pkgs.buildNpmPackage { | ||
name = "jenkins-kubernetes-operator-website"; | ||
src = ../website; | ||
version = "0.0.1"; | ||
npmDepsHash = "sha256-NcspVYF+9dCrGxH/cGNhD+TxLZm6ZDX523mKm9smAAA="; | ||
nativeBuildInputs = buildPackages; | ||
buildPhase = "npm run build"; | ||
installPhase = "cp -r public $out"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
has nix && use flake .#website | ||
has nix && use flake ../.#website |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters