mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
ci: push all changes to gitlab.com mirror (#57)
GitLab only considers repos on the current instance for its CI/CD catalog. We want to publish a GitLab CI/CD component for #4.
This commit is contained in:
parent
84d4dd9d26
commit
da0c07497b
1 changed files with 28 additions and 0 deletions
28
.github/workflows/mirror.yaml
vendored
Normal file
28
.github/workflows/mirror.yaml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: mirror
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["*"]
|
||||
|
||||
jobs:
|
||||
gitlab.com:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REMOTE: mirror
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Need all to fetch all tags so we can push them
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Add Remote
|
||||
env:
|
||||
CLONE_URL: "https://releaser-pleaser:${{ secrets.GITLAB_COM_PUSH_TOKEN }}@gitlab.com/apricote/releaser-pleaser.git"
|
||||
run: git remote add $REMOTE $CLONE_URL
|
||||
|
||||
- name: Push Branches
|
||||
run: git push --force --all --verbose $REMOTE
|
||||
|
||||
- name: Push Tags
|
||||
run: git push --force --tags --verbose $REMOTE
|
||||
Loading…
Add table
Add a link
Reference in a new issue