From 39a9347bab86f1e2479828923116fa111205224f Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 5 Sep 2023 13:38:53 +0200 Subject: [PATCH] use new nodejs --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2219289..d06f68c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,15 +5,15 @@ variables: before_script: - rustup target add $CARGO_TARGET - - apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools sqlite3 curl gnupg && curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs + - apt-get update -qq && apt-get install -y -qq sshpass musl musl-tools sqlite3 curl gnupg && mkdir -p /etc/apt/keyrings | curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install nodejs -y - ./test_db.sh build: stage: build script: + - cd frontend && npm install && npm run build - cargo build --release --target $CARGO_TARGET - strip target/$CARGO_TARGET/release/rot - - cd frontend && npm install && npm run build artifacts: paths: - target/$CARGO_TARGET/release/rot