fix(ci): isolate API documentation channels
This commit is contained in:
parent
5452e3f73e
commit
fd1b15dd58
1 changed files with 64 additions and 15 deletions
|
|
@ -1,11 +1,21 @@
|
||||||
when:
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
path:
|
||||||
|
- ".woodpecker/spec-build.yaml"
|
||||||
|
- "mix.exs"
|
||||||
|
- "mix.lock"
|
||||||
|
- "lib/pleroma/web.ex"
|
||||||
|
- "lib/pleroma/web/**/*.ex"
|
||||||
- event: tag
|
- event: tag
|
||||||
- event: manual
|
- event: manual
|
||||||
branch: stable
|
evaluate: 'CI_COMMIT_BRANCH == "stable" || CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
||||||
|
concurrency: 1
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
artifacts_uploader_image: &artifacts_uploader_image docker.io/woodpeckercommunity/plugin-gitea-package:0.5.1
|
artifacts_uploader_image: &artifacts_uploader_image docker.io/woodpeckercommunity/plugin-gitea-package:0.5.1
|
||||||
artifacts_uploader_settings: &artifacts_uploader_settings
|
artifacts_uploader_settings: &artifacts_uploader_settings
|
||||||
|
|
@ -14,6 +24,18 @@ variables:
|
||||||
password:
|
password:
|
||||||
from_secret: pleroma-ci-password
|
from_secret: pleroma-ci-password
|
||||||
owner: 'pleroma'
|
owner: 'pleroma'
|
||||||
|
package_name: api-docs-spec
|
||||||
|
file_source: ./spec.json
|
||||||
|
file_name: spec.json
|
||||||
|
update: 'true'
|
||||||
|
trigger_image: &trigger_image docker.io/woodpeckerci/plugin-trigger:1.1.1
|
||||||
|
trigger_settings: &trigger_settings
|
||||||
|
deploy: 'api-docs'
|
||||||
|
last-successful: true
|
||||||
|
token:
|
||||||
|
from_secret: pleroma-ci-woodpecker-token
|
||||||
|
repositories:
|
||||||
|
- pleroma/api-docs@master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build-spec:
|
build-spec:
|
||||||
|
|
@ -33,21 +55,48 @@ steps:
|
||||||
image: *artifacts_uploader_image
|
image: *artifacts_uploader_image
|
||||||
settings:
|
settings:
|
||||||
<<: *artifacts_uploader_settings
|
<<: *artifacts_uploader_settings
|
||||||
package_name: api-docs-spec
|
package_version: ${CI_COMMIT_SHA}
|
||||||
package_version: stable
|
|
||||||
file_source: ./spec.json
|
|
||||||
file_name: spec.json
|
|
||||||
update: 'true'
|
|
||||||
|
|
||||||
trigger-deploy:
|
upload-spec-stable:
|
||||||
image: docker.io/woodpeckerci/plugin-trigger:1.1.1
|
when:
|
||||||
|
- event: tag
|
||||||
|
- event: manual
|
||||||
|
branch: stable
|
||||||
|
image: *artifacts_uploader_image
|
||||||
settings:
|
settings:
|
||||||
|
<<: *artifacts_uploader_settings
|
||||||
|
package_version: stable
|
||||||
|
|
||||||
|
upload-spec-develop:
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
- event: manual
|
||||||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
image: *artifacts_uploader_image
|
||||||
|
settings:
|
||||||
|
<<: *artifacts_uploader_settings
|
||||||
|
package_version: develop
|
||||||
|
|
||||||
|
trigger-deploy-stable:
|
||||||
|
when:
|
||||||
|
- event: tag
|
||||||
|
- event: manual
|
||||||
|
branch: stable
|
||||||
|
image: *trigger_image
|
||||||
|
settings:
|
||||||
|
<<: *trigger_settings
|
||||||
params:
|
params:
|
||||||
- BRANCH=stable
|
- BRANCH=stable
|
||||||
deploy: 'api-docs'
|
- SPEC_VERSION=${CI_COMMIT_SHA}
|
||||||
last-successful: true
|
|
||||||
token:
|
trigger-deploy-develop:
|
||||||
from_secret:
|
when:
|
||||||
pleroma-ci-woodpecker-token
|
- event: push
|
||||||
repositories:
|
- event: manual
|
||||||
- pleroma/api-docs@master
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
image: *trigger_image
|
||||||
|
settings:
|
||||||
|
<<: *trigger_settings
|
||||||
|
params:
|
||||||
|
- BRANCH=develop
|
||||||
|
- SPEC_VERSION=${CI_COMMIT_SHA}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue