GitLab support for default artifacts setting is broken
https://gitlab.com/gitlab-org/gitlab/-/issues/404563
This commit is contained in:
parent
5337a0e223
commit
aab65fe854
1 changed files with 15 additions and 5 deletions
|
|
@ -1,9 +1,5 @@
|
||||||
image: git.pleroma.social:5050/pleroma/pleroma/ci-base:elixir-1.14.5-otp-25
|
image: git.pleroma.social:5050/pleroma/pleroma/ci-base:elixir-1.14.5-otp-25
|
||||||
|
|
||||||
default:
|
|
||||||
artifacts:
|
|
||||||
expire_in: 1 week
|
|
||||||
|
|
||||||
variables: &global_variables
|
variables: &global_variables
|
||||||
# Only used for the release
|
# Only used for the release
|
||||||
ELIXIR_VER: 1.17.3
|
ELIXIR_VER: 1.17.3
|
||||||
|
|
@ -22,6 +18,10 @@ workflow:
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_BRANCH
|
- if: $CI_COMMIT_BRANCH
|
||||||
|
|
||||||
|
# Default artifacts configuration
|
||||||
|
.default_artifacts: &default_artifacts
|
||||||
|
expire_in: 30 days
|
||||||
|
|
||||||
cache: &global_cache_policy
|
cache: &global_cache_policy
|
||||||
key: $CI_JOB_IMAGE-$CI_COMMIT_SHORT_SHA
|
key: $CI_JOB_IMAGE-$CI_COMMIT_SHORT_SHA
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -59,6 +59,7 @@ check-changelog:
|
||||||
before_script: ''
|
before_script: ''
|
||||||
after_script: ''
|
after_script: ''
|
||||||
cache: {}
|
cache: {}
|
||||||
|
artifacts: *default_artifacts
|
||||||
script:
|
script:
|
||||||
- apk add git
|
- apk add git
|
||||||
- sh ./tools/check-changelog
|
- sh ./tools/check-changelog
|
||||||
|
|
@ -74,6 +75,7 @@ check-changelog:
|
||||||
.using-ci-base:
|
.using-ci-base:
|
||||||
tags:
|
tags:
|
||||||
- amd64
|
- amd64
|
||||||
|
artifacts: *default_artifacts
|
||||||
|
|
||||||
build-1.14.5-otp-25:
|
build-1.14.5-otp-25:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -104,6 +106,7 @@ spec-build:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- spec.json
|
- spec.json
|
||||||
|
expire_in: 42 years
|
||||||
script:
|
script:
|
||||||
- mix pleroma.openapi_spec spec.json
|
- mix pleroma.openapi_spec spec.json
|
||||||
|
|
||||||
|
|
@ -141,6 +144,7 @@ unit-testing-1.14.5-otp-25:
|
||||||
- mix pleroma.test_runner --cover --preload-modules
|
- mix pleroma.test_runner --cover --preload-modules
|
||||||
coverage: '/^Line total: ([^ ]*%)$/'
|
coverage: '/^Line total: ([^ ]*%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
expire_in: 30 days
|
||||||
reports:
|
reports:
|
||||||
coverage_report:
|
coverage_report:
|
||||||
coverage_format: cobertura
|
coverage_format: cobertura
|
||||||
|
|
@ -158,6 +162,7 @@ unit-testing-1.17.1-otp-26:
|
||||||
|
|
||||||
formatting-1.15:
|
formatting-1.15:
|
||||||
extends: .build_changes_policy
|
extends: .build_changes_policy
|
||||||
|
artifacts: *default_artifacts
|
||||||
image: &formatting_elixir elixir:1.15-alpine
|
image: &formatting_elixir elixir:1.15-alpine
|
||||||
stage: lint
|
stage: lint
|
||||||
cache: *testing_cache_policy
|
cache: *testing_cache_policy
|
||||||
|
|
@ -172,6 +177,7 @@ formatting-1.15:
|
||||||
|
|
||||||
cycles-1.15:
|
cycles-1.15:
|
||||||
extends: .build_changes_policy
|
extends: .build_changes_policy
|
||||||
|
artifacts: *default_artifacts
|
||||||
image: *formatting_elixir
|
image: *formatting_elixir
|
||||||
stage: lint
|
stage: lint
|
||||||
cache: {}
|
cache: {}
|
||||||
|
|
@ -204,6 +210,7 @@ dialyzer:
|
||||||
|
|
||||||
docs-deploy:
|
docs-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
artifacts: *default_artifacts
|
||||||
cache: *testing_cache_policy
|
cache: *testing_cache_policy
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
only:
|
only:
|
||||||
|
|
@ -228,6 +235,7 @@ review_app:
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
artifacts: *default_artifacts
|
||||||
script:
|
script:
|
||||||
- echo "$CI_ENVIRONMENT_SLUG"
|
- echo "$CI_ENVIRONMENT_SLUG"
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
|
|
@ -247,6 +255,7 @@ spec-deploy:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- spec.json
|
- spec.json
|
||||||
|
expire_in: 30 days
|
||||||
only:
|
only:
|
||||||
- develop@pleroma/pleroma
|
- develop@pleroma/pleroma
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
@ -259,6 +268,7 @@ spec-deploy:
|
||||||
stop_review_app:
|
stop_review_app:
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
artifacts: *default_artifacts
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add openssh-client git
|
- apk update && apk add openssh-client git
|
||||||
when: manual
|
when: manual
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue