Merge branch 'merge-stable' into 'stable'
Merge CI changes to stable See merge request pleroma/pleroma!4389
This commit is contained in:
commit
5bc454c265
2 changed files with 31 additions and 16 deletions
|
|
@ -14,10 +14,18 @@ variables: &global_variables
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "develop"
|
||||||
|
- if: $CI_COMMIT_BRANCH == "stable"
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "web"
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
|
||||||
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:
|
||||||
|
|
@ -55,6 +63,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
|
||||||
|
|
@ -70,6 +79,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:
|
||||||
|
|
@ -100,8 +110,12 @@ spec-build:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- spec.json
|
- spec.json
|
||||||
|
reports:
|
||||||
|
dotenv: build.env
|
||||||
|
expire_in: 42 years
|
||||||
script:
|
script:
|
||||||
- mix pleroma.openapi_spec spec.json
|
- mix pleroma.openapi_spec spec.json
|
||||||
|
- echo "SPEC_BUILD_JOB_ID=$CI_JOB_ID" >> build.env
|
||||||
|
|
||||||
benchmark:
|
benchmark:
|
||||||
extends:
|
extends:
|
||||||
|
|
@ -137,6 +151,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
|
||||||
|
|
@ -154,6 +169,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
|
||||||
|
|
@ -168,6 +184,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: {}
|
||||||
|
|
@ -191,7 +208,7 @@ dialyzer:
|
||||||
- .using-ci-base
|
- .using-ci-base
|
||||||
stage: lint
|
stage: lint
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
when: manual
|
when: manual
|
||||||
cache: *testing_cache_policy
|
cache: *testing_cache_policy
|
||||||
tags:
|
tags:
|
||||||
- feld
|
- feld
|
||||||
|
|
@ -200,15 +217,14 @@ dialyzer:
|
||||||
|
|
||||||
docs-deploy:
|
docs-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
cache: *testing_cache_policy
|
trigger:
|
||||||
image: alpine:latest
|
project: pleroma/docs
|
||||||
|
branch: master
|
||||||
|
strategy: depend
|
||||||
only:
|
only:
|
||||||
- stable@pleroma/pleroma
|
- stable@pleroma/pleroma
|
||||||
- develop@pleroma/pleroma
|
- develop@pleroma/pleroma
|
||||||
before_script:
|
|
||||||
- apk add curl
|
|
||||||
script:
|
|
||||||
- curl --fail-with-body -X POST -F"token=$CI_JOB_TOKEN" -F'ref=master' -F"variables[BRANCH]=$CI_COMMIT_REF_NAME" https://git.pleroma.social/api/v4/projects/673/trigger/pipeline
|
|
||||||
review_app:
|
review_app:
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
@ -224,6 +240,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
|
||||||
|
|
@ -240,21 +257,19 @@ review_app:
|
||||||
|
|
||||||
spec-deploy:
|
spec-deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
artifacts:
|
trigger:
|
||||||
paths:
|
project: pleroma/api-docs
|
||||||
- spec.json
|
branch: master
|
||||||
|
strategy: depend
|
||||||
only:
|
only:
|
||||||
- develop@pleroma/pleroma
|
- develop@pleroma/pleroma
|
||||||
image: alpine:latest
|
variables:
|
||||||
before_script:
|
SPEC_BUILD_JOB_ID: $SPEC_BUILD_JOB_ID
|
||||||
- apk add curl
|
|
||||||
script:
|
|
||||||
- curl --fail-with-body -X POST -F"token=$CI_JOB_TOKEN" -F'ref=master' -F"variables[BRANCH]=$CI_COMMIT_REF_NAME" -F"variables[JOB_REF]=$CI_JOB_ID" https://git.pleroma.social/api/v4/projects/1130/trigger/pipeline
|
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|
|
||||||
0
changelog.d/ci-artifacts.skip
Normal file
0
changelog.d/ci-artifacts.skip
Normal file
Loading…
Add table
Add a link
Reference in a new issue