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

Gitlab autopush: use script from ci-support

parent 5b0e29fe
No related branches found
No related tags found
No related merge requests found
Pipeline #559886 passed
...@@ -7,14 +7,15 @@ on: ...@@ -7,14 +7,15 @@ on:
jobs: jobs:
autopush: autopush:
name: Automatic push to gitlab.tiker.net name: Automatic push to gitlab.tiker.net
if: startsWith(github.repository, 'inducer/')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: | - run: |
mkdir ~/.ssh && echo -e "Host gitlab.tiker.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config curl -L -O https://tiker.net/ci-support-v0
eval $(ssh-agent) && echo "$GITLAB_AUTOPUSH_KEY" | ssh-add - . ./ci-support-v0
git fetch --unshallow mirror_github_to_gitlab
git push "git@gitlab.tiker.net:inducer/$(basename $GITHUB_REPOSITORY).git" main
env: env:
GITLAB_AUTOPUSH_KEY: ${{ secrets.GITLAB_AUTOPUSH_KEY }} 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