generated from Luis/nextjs-python-web-template
Merge pull request 'Changed update-ui-assets to push to IoSL' (#4) from Luis-Hebendanz-main into main
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{ fetchzip }:
|
{ fetchzip }:
|
||||||
fetchzip {
|
fetchzip {
|
||||||
url = "https://gitea.gchq.icu/api/packages/ui-asset-bot/generic/Luis-nextjs-python-web-template/0490isam16py7apig295ji99fjblm44m80b68dv5fbpj3xnvx113/assets.tar.gz";
|
url = "https://gitea.gchq.icu/api/packages/IoSL/generic/IoSL-service-aware-frontend/1avqlivp7vs693b91ywgzyqgksg781lznf273cvfmjmz8h4sqpp7/assets.tar.gz";
|
||||||
sha256 = "0490isam16py7apig295ji99fjblm44m80b68dv5fbpj3xnvx113";
|
sha256 = "1avqlivp7vs693b91ywgzyqgksg781lznf273cvfmjmz8h4sqpp7";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ if [[ -z "${GITHUB_SERVER_URL:-}" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z "${GITHUB_REPOSITORY:-}" ]]; then
|
||||||
|
echo "Env var GITHUB_REPOSITORY is not set. Please use the repo path here."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
DEPS=$(nix shell --inputs-from '.#' "nixpkgs#gnutar" "nixpkgs#gnused" "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
|
export PATH=$PATH:$DEPS
|
||||||
|
|
||||||
@@ -31,7 +36,7 @@ nix build '.#ui' --out-link "$tmpdir/result"
|
|||||||
tar --transform 's,^\.,assets,' -czvf "$tmpdir/assets.tar.gz" -C "$tmpdir"/result/lib/node_modules/*/out .
|
tar --transform 's,^\.,assets,' -czvf "$tmpdir/assets.tar.gz" -C "$tmpdir"/result/lib/node_modules/*/out .
|
||||||
NAR_HASH=$(nix-prefetch-url --unpack file://<(cat "$tmpdir/assets.tar.gz"))
|
NAR_HASH=$(nix-prefetch-url --unpack file://<(cat "$tmpdir/assets.tar.gz"))
|
||||||
|
|
||||||
owner=$BOT_NAME
|
owner=IoSL
|
||||||
package_name=$(echo -n "$GITHUB_REPOSITORY" | sed 's/\//-/g')
|
package_name=$(echo -n "$GITHUB_REPOSITORY" | sed 's/\//-/g')
|
||||||
package_version=$NAR_HASH
|
package_version=$NAR_HASH
|
||||||
baseurl=$GITHUB_SERVER_URL
|
baseurl=$GITHUB_SERVER_URL
|
||||||
|
|||||||
Reference in New Issue
Block a user