Skip to content
Snippets Groups Projects
Commit ed67e150 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Gitlab autopush: use script from ci-support

parent b2f63c25
No related branches found
No related tags found
No related merge requests found
Pipeline #554425 failed
......@@ -3,7 +3,6 @@ on:
push:
branches:
- main
- kernel_callables_v3-edit2
jobs:
autopush:
......@@ -12,12 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
mkdir ~/.ssh && echo -e "Host gitlab.tiker.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
eval $(ssh-agent) && echo "$GITLAB_AUTOPUSH_KEY" | ssh-add -
git fetch --unshallow
TGT_BRANCH="${GITHUB_REF#refs/heads/}"
echo "pushing to $TGT_BRANCH..."
git push "git@gitlab.tiker.net:inducer/$(basename $GITHUB_REPOSITORY).git" "$TGT_BRANCH"
curl -L -O https://tiker.net/ci-support-v0
. ./ci-support-v0
mirror_github_to_gitlab
env:
GITLAB_AUTOPUSH_KEY: ${{ secrets.GITLAB_AUTOPUSH_KEY }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment