Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codebase sync #312

Merged
merged 17 commits into from
Jan 5, 2024
Merged
22 changes: 22 additions & 0 deletions .github/workflows/codebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: codebase-sync

on:
- push
- delete

jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wangchucheng/[email protected]
with:
# Such as https://github.com/wangchucheng/git-repo-sync.git
target-url: https://codebase.helmholtz.cloud/m-team/oidc/mytoken/server.git
# Such as wangchucheng
target-username: gabriel.zachmann
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS_TOKEN }}
target-token: ${{ secrets.CODEBASE_TOKEN }}
7 changes: 6 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
include:
- 'https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/-/raw/master/ci-include/github-status-sync.yml'

variables:
UPSTREAM_PROJECT: oidc-mytoken/server

image: golang:1.19
stages:
- build
Expand Down Expand Up @@ -90,4 +96,3 @@ deploy-dev:
- cp $DEPLOYMENT_SSH_KEY /root/.ssh/id_ed25519 && chmod 0600 /root/.ssh/id_ed25519
script:
- ssh mytoken-dev.vm.fedcloud.eu

Loading