Skip to content

Commit d1f3074

Browse files
author
Itay Gabbay
authored
adding sync to the fully oss repo (#32)
1 parent 783ff64 commit d1f3074

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/oss-sync.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Sync OSS Repo
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
repo-sync:
8+
name: Sync monitoring-oss with monitoring
9+
if: github.repository == 'deepchecks/monitoring'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Sync repositories 1 to 1 - main branch
13+
uses: wei/git-sync@v3
14+
with:
15+
source_repo: 'https://${{ secrets.DEEPCHECKS_CI_TOKEN }}@github.com/deepchecks/monitoring.git'
16+
source_branch: 'main'
17+
destination_repo: 'https://${{ secrets.DEEPCHECKS_CI_TOKEN }}@github.com/deepchecks/monitoring-oss.git'
18+
destination_branch: 'main'
19+
- name: Sync repositories 1 to 1 – tags
20+
uses: wei/git-sync@v3
21+
with:
22+
source_repo: 'https://${{ secrets.DEEPCHECKS_CI_TOKEN }}@github.com/deepchecks/monitoring.git'
23+
source_branch: 'refs/tags/*'
24+
destination_repo: 'https://${{ secrets.DEEPCHECKS_CI_TOKEN }}@github.com/deepchecks/monitoring-oss.git'
25+
destination_branch: 'refs/tags/*'
26+
- name: Checkout monitoring-oss
27+
uses: actions/checkout@v3
28+
with:
29+
repository: 'deepchecks/monitoring-oss'
30+
ref: main
31+
token: ${{ secrets.DEEPCHECKS_CI_TOKEN }}
32+
- name: Change LICENSE to pure AGPL
33+
run: |
34+
rm -f LICENSE
35+
mv AGPL_LICENSE LICENSE
36+
- name: Remove unused GitHub workflows
37+
run: |
38+
cd .github/workflows
39+
ls | grep -v oss-sync.yml | xargs rm
40+
41+
- name: Commit "Sync and remove all non-OSS parts"
42+
uses: EndBug/add-and-commit@v7
43+
with:
44+
message: 'Sync and remove all non-OSS parts'
45+
remove: '["-r backend/deepchecks_monitoring/ee/"]'
46+
default_author: github_actions
47+
github_token: ${{ secrets.DEEPCHECKS_CI_TOKEN }}
48+
- run: echo # Empty step so that GitHub doesn't complain about an empty job on forks

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ Deepchecks Monitoring open source installation is released under the AGPL 3.0. P
7070

7171
Using premium features (contained in the `backend/deepchecks_monitoring/ee` directory) with a self-hosted instance requires a Deepchecks license. To learn more, [book a demo](https://deepchecks.com/book-demo/) or see our [pricing page](https://deepchecks.com/pricing).
7272

73+
**Looking for a fully open-source solution? Check out the [Monitoring OSS](https://github.com/deepchecks/monitoring-oss) repository, which is purged of all proprietary code and features.**

0 commit comments

Comments
 (0)