ci: remove apt-get upgrade

This commit is contained in:
naskya 2024-08-03 12:03:25 +09:00
parent 1b2e58ef33
commit 0a30951285
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -47,8 +47,7 @@ variables:
default: default:
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get -y --no-install-recommends install curl
- apt-get -y --no-install-recommends install curl
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash - - curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
- apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client - apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
- corepack enable - corepack enable
@ -111,8 +110,7 @@ test:build:backend_ts:
- packages/firefish-js/**/* - packages/firefish-js/**/*
when: always when: always
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get -y --no-install-recommends install curl
- apt-get -y --no-install-recommends install curl
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash - - curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
- apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client - apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
- corepack enable - corepack enable
@ -159,8 +157,7 @@ test:build:client:
when: always when: always
services: [] services: []
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get -y --no-install-recommends install curl
- apt-get -y --no-install-recommends install curl
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash - - curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
- apt-get install -y --no-install-recommends build-essential python3 perl nodejs - apt-get install -y --no-install-recommends build-essential python3 perl nodejs
- corepack enable - corepack enable
@ -179,10 +176,9 @@ build:container:
variables: variables:
STORAGE_DRIVER: overlay STORAGE_DRIVER: overlay
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get install -y --no-install-recommends ca-certificates fuse-overlayfs buildah
- |- - |-
sed -i -r 's/"version": "([-0-9]+)",/"version": "\1-dev",/' package.json sed -i -r 's/"version": "([-0-9]+)",/"version": "\1-dev",/' package.json
- apt-get install -y --no-install-recommends ca-certificates fuse-overlayfs buildah
- echo "${CI_REGISTRY_PASSWORD}" | buildah login --username "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}" - echo "${CI_REGISTRY_PASSWORD}" | buildah login --username "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}"
- export IMAGE_TAG_1="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production" - export IMAGE_TAG_1="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production"
- export IMAGE_TAG_2="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production-$(date +%Y%m%d)" - export IMAGE_TAG_2="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production-$(date +%Y%m%d)"
@ -221,8 +217,7 @@ cargo:check:msrv:
when: always when: always
services: [] services: []
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
- apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
- cp ci/cargo/config.toml /usr/local/cargo/config.toml - cp ci/cargo/config.toml /usr/local/cargo/config.toml
- export CARGO_TARGET_DIR='ci/target-msrv' - export CARGO_TARGET_DIR='ci/target-msrv'
script: script:
@ -264,8 +259,7 @@ cargo:clippy:
when: always when: always
services: [] services: []
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get install -y --no-install-recommends build-essential clang mold perl
- apt-get install -y --no-install-recommends build-essential clang mold perl
- cp ci/cargo/config.toml /usr/local/cargo/config.toml - cp ci/cargo/config.toml /usr/local/cargo/config.toml
- rustup component add clippy - rustup component add clippy
script: script:
@ -289,8 +283,7 @@ cargo:doc:
when: always when: always
services: [] services: []
before_script: before_script:
- apt-get update - apt-get update && apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
- apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
- cp ci/cargo/config.toml /usr/local/cargo/config.toml - cp ci/cargo/config.toml /usr/local/cargo/config.toml
script: script:
- cargo doc --document-private-items - cargo doc --document-private-items
@ -331,8 +324,7 @@ clean:
- if: $CLEAN && $CI_PIPELINE_SOURCE == 'schedule' - if: $CLEAN && $CI_PIPELINE_SOURCE == 'schedule'
services: [] services: []
before_script: before_script:
- apt-get update && apt-get -y upgrade - apt-get update && apt-get -y --no-install-recommends install curl
- apt-get -y --no-install-recommends install curl
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash - - curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
- apt-get install -y --no-install-recommends nodejs - apt-get install -y --no-install-recommends nodejs
- corepack enable - corepack enable