Skip to content

Commit

Permalink
Use for CI reusable workflows for DRY (#350)
Browse files Browse the repository at this point in the history
We can use across all the repositories of plugins and apps
the same reusable workflow which give us the ability to
change only one file instead of multiple and apart from this the ability to use different versions as we prefer.

Ticket: https://mattermost.atlassian.net/browse/CLD-4681
  • Loading branch information
spirosoik committed Dec 20, 2022
1 parent 09907ab commit 82c55a2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cd
on:
workflow_run:
workflows: ["ci"]
types:
- completed
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: read

jobs:
plugin-cd:
uses: mattermost/actions-workflows/.github/workflows/plugin-cd.yml@11369c571c4a721bfaca5d9c7f3920c201e79a20
secrets: inherit
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ci
on:
push:
branches:
- master
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:

permissions:
contents: read

jobs:
plugin-ci:
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@11369c571c4a721bfaca5d9c7f3920c201e79a20
secrets: inherit

0 comments on commit 82c55a2

Please sign in to comment.