mirror of
https://github.com/tiennm99/tiennm99.github.io.git
synced 2026-10-11 03:13:44 +00:00
feat: gitlab 2
This commit is contained in:
1 parent
aa7897c9fb
commit
5db1a35423
2 files changed
+31
No files matched your search
@@ -53,6 +53,26 @@ jobs:
|
|||||||
# Push all tags
|
# Push all tags
|
||||||
git push gitlab --tags --force
|
git push gitlab --tags --force
|
||||||
|
|
||||||
|
- name: Mirror to GitLab (tiennm99)
|
||||||
|
run: |
|
||||||
|
# Add GitLab remote for tiennm99
|
||||||
|
git remote add gitlab-tiennm99 git@gitlab.com:tiennm99/tiennm99.github.io.git
|
||||||
|
|
||||||
|
# Fetch from GitLab to get information about the default branch
|
||||||
|
git fetch gitlab-tiennm99
|
||||||
|
|
||||||
|
# Get list of local branches
|
||||||
|
LOCAL_BRANCHES=$(git branch | grep -v "origin/" | tr -d '* ' | tr '\n' ' ')
|
||||||
|
|
||||||
|
# Push each local branch individually to GitLab
|
||||||
|
for branch in $LOCAL_BRANCHES; do
|
||||||
|
# Push branch to GitLab
|
||||||
|
git push gitlab-tiennm99 $branch:$branch --force
|
||||||
|
done
|
||||||
|
|
||||||
|
# Push all tags
|
||||||
|
git push gitlab-tiennm99 --tags --force
|
||||||
|
|
||||||
- name: Mirror to Bitbucket
|
- name: Mirror to Bitbucket
|
||||||
run: |
|
run: |
|
||||||
# Add Bitbucket remote
|
# Add Bitbucket remote
|
||||||
|
|||||||
+11
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="vi">
|
||||||
|
<head>
|
||||||
|
<title>Redirect</title>
|
||||||
|
<script>
|
||||||
|
window.location.hostname = "miti99.com";
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in new issue
Block a user