From b8f8f8dec12f2d27ef487a7b04cbe5b4d8743741 Mon Sep 17 00:00:00 2001 From: Vitaliy Ognev Date: Tue, 16 Apr 2024 09:07:06 +0300 Subject: [PATCH] ci: always update docker image packages (MR 5038) --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01b5f40f0..4e5a2a625 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,8 @@ # global settings image: alpine:edge +before_script: &global_before_scripts + - apk upgrade -U after_script: - .ci/lib/move_logs.sh $CI_PROJECT_DIR stages: @@ -41,6 +43,7 @@ ruff: - .gitlab-ci.yml before_script: - "echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories" + - *global_before_scripts script: - .ci/lib/gitlab_prepare_ci.sh - .ci/ruff.sh @@ -112,6 +115,7 @@ mr-settings: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" before_script: + - *global_before_scripts - apk -q add python3 script: - wget -q "https://gitlab.com/postmarketOS/ci-common/-/raw/master/check_mr_settings.py" @@ -123,6 +127,7 @@ mr-settings: rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_REF_PROTECTED == "false" before_script: + - *global_before_scripts - .ci/lib/gitlab_prepare_ci.sh after_script: - cp -r /home/pmos/.local/var/pmbootstrap/packages/ packages/ || true