GitLab support for default artifacts setting is broken

https://gitlab.com/gitlab-org/gitlab/-/issues/404563
This commit is contained in:
Mark Felder 2025-10-23 10:58:11 -07:00
commit aab65fe854

View file

@ -1,9 +1,5 @@
image: git.pleroma.social:5050/pleroma/pleroma/ci-base:elixir-1.14.5-otp-25
default:
artifacts:
expire_in: 1 week
variables: &global_variables
# Only used for the release
ELIXIR_VER: 1.17.3
@ -22,6 +18,10 @@ workflow:
when: never
- if: $CI_COMMIT_BRANCH
# Default artifacts configuration
.default_artifacts: &default_artifacts
expire_in: 30 days
cache: &global_cache_policy
key: $CI_JOB_IMAGE-$CI_COMMIT_SHORT_SHA
paths:
@ -59,6 +59,7 @@ check-changelog:
before_script: ''
after_script: ''
cache: {}
artifacts: *default_artifacts
script:
- apk add git
- sh ./tools/check-changelog
@ -74,6 +75,7 @@ check-changelog:
.using-ci-base:
tags:
- amd64
artifacts: *default_artifacts
build-1.14.5-otp-25:
extends:
@ -104,6 +106,7 @@ spec-build:
artifacts:
paths:
- spec.json
expire_in: 42 years
script:
- mix pleroma.openapi_spec spec.json
@ -141,6 +144,7 @@ unit-testing-1.14.5-otp-25:
- mix pleroma.test_runner --cover --preload-modules
coverage: '/^Line total: ([^ ]*%)$/'
artifacts:
expire_in: 30 days
reports:
coverage_report:
coverage_format: cobertura
@ -158,6 +162,7 @@ unit-testing-1.17.1-otp-26:
formatting-1.15:
extends: .build_changes_policy
artifacts: *default_artifacts
image: &formatting_elixir elixir:1.15-alpine
stage: lint
cache: *testing_cache_policy
@ -172,6 +177,7 @@ formatting-1.15:
cycles-1.15:
extends: .build_changes_policy
artifacts: *default_artifacts
image: *formatting_elixir
stage: lint
cache: {}
@ -195,7 +201,7 @@ dialyzer:
- .using-ci-base
stage: lint
allow_failure: true
when: manual
when: manual
cache: *testing_cache_policy
tags:
- feld
@ -204,6 +210,7 @@ dialyzer:
docs-deploy:
stage: deploy
artifacts: *default_artifacts
cache: *testing_cache_policy
image: alpine:latest
only:
@ -228,6 +235,7 @@ review_app:
except:
- master
- develop
artifacts: *default_artifacts
script:
- echo "$CI_ENVIRONMENT_SLUG"
- mkdir -p ~/.ssh
@ -247,6 +255,7 @@ spec-deploy:
artifacts:
paths:
- spec.json
expire_in: 30 days
only:
- develop@pleroma/pleroma
image: alpine:latest
@ -259,6 +268,7 @@ spec-deploy:
stop_review_app:
image: alpine:3.9
stage: deploy
artifacts: *default_artifacts
before_script:
- apk update && apk add openssh-client git
when: manual