diff options
author | Astound <kirito@disroot.org> | 2024-08-04 12:24:39 +0800 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2024-08-04 12:24:39 +0800 |
commit | b314d7aa0838d38ac3a351af495002cd349dcf19 (patch) | |
tree | 307954030eede3ece06339b180435d06f6e16d7a /.gitea/workflows/git-sync.yaml | |
parent | 0163470f74037f159eb5d2888ca3abae8e087f95 (diff) | |
download | yt-local-docker-b314d7aa0838d38ac3a351af495002cd349dcf19.tar.lz yt-local-docker-b314d7aa0838d38ac3a351af495002cd349dcf19.tar.xz yt-local-docker-b314d7aa0838d38ac3a351af495002cd349dcf19.zip |
workflows: add git sync
Diffstat (limited to '.gitea/workflows/git-sync.yaml')
-rw-r--r-- | .gitea/workflows/git-sync.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitea/workflows/git-sync.yaml b/.gitea/workflows/git-sync.yaml new file mode 100644 index 0000000..6d85399 --- /dev/null +++ b/.gitea/workflows/git-sync.yaml @@ -0,0 +1,25 @@ +name: git-sync-with-mirror + +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + git-sync: + runs-on: ubuntu-latest + + steps: + - name: git-sync + env: + git_sync_source_repo: git@git.fridu.us:heckyel/yt-local-docker.git + git_sync_destination_repo: ssh://git@c.fridu.us/containers/yt-local-docker.git + if: env.git_sync_source_repo && env.git_sync_destination_repo + uses: wei/git-sync@v3 + with: + source_repo: git@git.fridu.us:heckyel/yt-local-docker.git + source_branch: "master" + destination_repo: ssh://git@c.fridu.us/containers/yt-local-docker.git + destination_branch: "master" + source_ssh_private_key: ${{ secrets.GIT_SYNC_SOURCE_SSH_PRIVATE_KEY }} + destination_ssh_private_key: ${{ secrets.GIT_SYNC_DESTINATION_SSH_PRIVATE_KEY }} |