diff --git a/.github/workflows/codebase.yml b/.github/workflows/codebase.yml new file mode 100644 index 00000000..9728bbd6 --- /dev/null +++ b/.github/workflows/codebase.yml @@ -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/git-repo-sync@v0.1.0 + 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 }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e61d46d..65aa7cf9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 @@ -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 -