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