Skip to content

Commit 49bbd81

Browse files
committed
Add gitlab ci file
1 parent d1a17ce commit 49bbd81

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
include:
2+
# include the component located in the current project from the current SHA
3+
- component: $CI_SERVER_FQDN/knowledge-integration/pipeline-utils/gitlab-components/git-sync/branch-sync@v0.0.3
4+
rules:
5+
- if: '$CI_COMMIT_BRANCH == "community-edition"'
6+
inputs:
7+
stage: synchronise
8+
target_url: "ssh://git@github.com/folio-org/ui-agreements.git"
9+
branches:
10+
- "community-edition:community-edition"
11+
ssh_key: "${SSH_FOLIO_SYNC}"
12+
13+
workflow:
14+
rules:
15+
- if: '$CI_COMMIT_BRANCH == "community-edition"'
16+
when: always
17+
- when: never
18+
19+
stages:
20+
- test
21+
- synchronise
22+
23+
replace-me:
24+
stage: test
25+
script:
26+
- echo "Replace this as necessary, to handle the none-community steps"
27+
rules:
28+
- if: $CI_COMMIT_BRANCH != "community-edition"
29+
when: always
30+
- when: never

0 commit comments

Comments
 (0)