From 6c86e842b293d8c45431e1a13d6f52e2ffd17b11 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 1 Aug 2023 23:28:32 -0700 Subject: [PATCH] ci: :green_heart: before_script per job --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c92bac1521..620b2509bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,14 +28,14 @@ services: - postgres:15 - redis -before_script: - - apk add --no-cache cargo python3 make g++ - - cp .config/ci.yml .config/default.yml - - corepack enable - - corepack prepare pnpm@latest --activate testCommit: stage: build + before_script: + - apk add --no-cache cargo python3 make g++ + - cp .config/ci.yml .config/default.yml + - corepack enable + - corepack prepare pnpm@latest --activate script: - pnpm i --frozen-lockfile - pnpm run build:debug @@ -51,8 +51,9 @@ dockerPush: image: docker:latest services: - docker:dind + before_script: + - cp .config/ci.yml .config/default.yml script: - - apk add --no-cache nodejs npm cargo python3 make g++ - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG