Skip to content

Commit e68b786

Browse files
authored
Codebase sync (#312)
add sync to codebase and ci status back
1 parent 14d1c74 commit e68b786

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/codebase.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: codebase-sync
2+
3+
on:
4+
- push
5+
- delete
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
name: Git Repo Sync
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: wangchucheng/git-repo-sync@v0.1.0
16+
with:
17+
# Such as https://github.com/wangchucheng/git-repo-sync.git
18+
target-url: https://codebase.helmholtz.cloud/m-team/oidc/mytoken/server.git
19+
# Such as wangchucheng
20+
target-username: gabriel.zachmann
21+
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
22+
target-token: ${{ secrets.CODEBASE_TOKEN }}

.gitlab-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
include:
2+
- 'https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/-/raw/master/ci-include/github-status-sync.yml'
3+
4+
variables:
5+
UPSTREAM_PROJECT: oidc-mytoken/server
6+
17
image: golang:1.19
28
stages:
39
- build
@@ -90,4 +96,3 @@ deploy-dev:
9096
- cp $DEPLOYMENT_SSH_KEY /root/.ssh/id_ed25519 && chmod 0600 /root/.ssh/id_ed25519
9197
script:
9298
- ssh mytoken-dev.vm.fedcloud.eu
93-

0 commit comments

Comments
 (0)