Compare commits

..

9 Commits

Author SHA1 Message Date
c0a5743502 update ui-assets.nix
All checks were successful
checks-impure / test (push) Has been skipped
checks / test (push) Has been skipped
assets1 / test (push) Has been skipped
2023-10-30 16:41:11 +00:00
48bc94a5de Merge pull request 'nix fmt' (#9) from Luis-main into main
All checks were successful
checks-impure / test (push) Successful in 24s
checks / test (push) Successful in 2m54s
assets1 / test (push) Successful in 48s
Reviewed-on: #9
2023-10-30 17:32:34 +01:00
1621b22c1c Fixed missing gnused in ui-assets.sh 2023-10-30 17:32:34 +01:00
1e9817dea2 Merge pull request 'nix fmt' (#8) from Luis-main into main
Some checks failed
checks-impure / test (push) Successful in 25s
checks / test (push) Successful in 2m43s
assets1 / test (push) Failing after 48s
Reviewed-on: #8
2023-10-30 17:26:29 +01:00
494067899e Generate ui assets package_name on the fly 2023-10-30 17:26:29 +01:00
b95194890d nix fmt 2023-10-30 17:26:29 +01:00
8c1c050ba3 Merge pull request 'Improved README' (#7) from Luis-main into main
Some checks failed
checks-impure / test (push) Successful in 26s
checks / test (push) Failing after 3m19s
assets1 / test (push) Successful in 22s
Reviewed-on: #7
2023-10-30 17:14:37 +01:00
55f252af92 update ui-assets.nix
All checks were successful
checks / test (push) Has been skipped
assets1 / test (push) Has been skipped
checks-impure / test (push) Has been skipped
2023-10-30 16:01:42 +00:00
81553a3bc6 Merge pull request 'Improved README and ui-asset workflow' (#6) from Luis-main into main
All checks were successful
checks-impure / test (push) Successful in 25s
checks / test (push) Successful in 1m28s
assets1 / test (push) Successful in 49s
Reviewed-on: #6
2023-10-30 16:59:11 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{ fetchzip }:
fetchzip {
url = "https://gitea.gchq.icu/api/packages/ui-asset-bot/generic/ui/1inlxk1i9q87bw00zwqyvpm3m0hdgdffhxlymzgi5wvqn9syd0cm/assets.tar.gz";
sha256 = "1inlxk1i9q87bw00zwqyvpm3m0hdgdffhxlymzgi5wvqn9syd0cm";
url = "https://gitea.gchq.icu/api/packages/ui-asset-bot/generic/Luis-nextjs-python-web-template/0490isam16py7apig295ji99fjblm44m80b68dv5fbpj3xnvx113/assets.tar.gz";
sha256 = "0490isam16py7apig295ji99fjblm44m80b68dv5fbpj3xnvx113";
}

View File

@@ -17,7 +17,7 @@ if [[ -z "${GITHUB_SERVER_URL:-}" ]]; then
exit 1
fi
DEPS=$(nix shell --inputs-from '.#' "nixpkgs#gnutar" "nixpkgs#curl" "nixpkgs#gzip" -c bash -c "echo \$PATH")
DEPS=$(nix shell --inputs-from '.#' "nixpkgs#gnutar" "nixpkgs#gnused" "nixpkgs#curl" "nixpkgs#gzip" -c bash -c "echo \$PATH")
export PATH=$PATH:$DEPS
@@ -32,7 +32,7 @@ tar --transform 's,^\.,assets,' -czvf "$tmpdir/assets.tar.gz" -C "$tmpdir"/resul
NAR_HASH=$(nix-prefetch-url --unpack file://<(cat "$tmpdir/assets.tar.gz"))
owner=$BOT_NAME
package_name=ui
package_name=$(echo -n "$GITHUB_REPOSITORY" | sed 's/\//-/g')
package_version=$NAR_HASH
baseurl=$GITHUB_SERVER_URL