Skip to content

Commit

Permalink
Add Gitlab autopush
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Apr 9, 2021
1 parent 6bac492 commit 0660c2b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/autopush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Gitlab mirror
on:
push:
branches:
- main

jobs:
autopush:
name: Automatic push to gitlab.tiker.net
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
git push "[email protected]:inducer/$(basename $GITHUB_REPOSITORY).git" main
env:
GITLAB_AUTOPUSH_KEY: ${{ secrets.GITLAB_AUTOPUSH_KEY }}
# vim: sw=4

0 comments on commit 0660c2b

Please sign in to comment.