Migrate from CircleCI to Github Actions (#246)
CI/CD reusable workflows in Github Actions for Plugin software lifecycle Ticket: https://mattermost.atlassian.net/browse/CLD-4816
This commit is contained in:
parent
3e09db8fd1
commit
409b31e348
|
@ -1,52 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
orbs:
|
||||
plugin-ci: mattermost/plugin-ci@volatile
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
ci:
|
||||
jobs:
|
||||
- plugin-ci/lint:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
- plugin-ci/coverage:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
- plugin-ci/build:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
- plugin-ci/deploy-ci:
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
context: plugin-ci
|
||||
requires:
|
||||
- plugin-ci/lint
|
||||
- plugin-ci/coverage
|
||||
- plugin-ci/build
|
||||
- plugin-ci/deploy-release:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
context: plugin-ci
|
||||
requires:
|
||||
- plugin-ci/lint
|
||||
- plugin-ci/coverage
|
||||
- plugin-ci/build
|
||||
- plugin-ci/deploy-release-github:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v.*/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
context: matterbuild-github-token
|
||||
requires:
|
||||
- plugin-ci/lint
|
||||
- plugin-ci/coverage
|
||||
- plugin-ci/build
|
|
@ -0,0 +1,18 @@
|
|||
name: cd
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["ci"]
|
||||
branches-ignore: ["*"]
|
||||
types:
|
||||
- completed
|
||||
push:
|
||||
tags:
|
||||
- "^v.*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
plugin-cd:
|
||||
uses: mattermost/actions-workflows/.github/workflows/plugin-cd.yml@main
|
||||
secrets: inherit
|
|
@ -0,0 +1,18 @@
|
|||
name: ci
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "^v.*"
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
plugin-ci:
|
||||
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@main
|
||||
secrets: inherit
|
|
@ -0,0 +1 @@
|
|||
mattermost-plugin-mscalendar
|
Reference in New Issue