chore(gitlab-ci): fix repository sync chaos

This commit is contained in:
Andrei Jiroh Eugenio Halili 2023-10-23 05:16:25 +00:00
parent 230baff1ec
commit 0ba2091475

View file

@ -21,7 +21,7 @@ variables:
DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION DEBUG: "1" # MAY HORRIBLY LEAK SECRETS, PROCEED WITH CAUTION
FF_ENABLE_COMMIT_DATA: "true" FF_ENABLE_COMMIT_DATA: "true"
FF_GENERATE_SOCIAL_CARDS: "true" FF_GENERATE_SOCIAL_CARDS: "true"
SECURE_FILES_DOWNLOAD_PATH: /run/secrets SECURE_FILES_DOWNLOAD_PATH: .secretskit
GIT_DEPTH: "0" GIT_DEPTH: "0"
pages: pages:
@ -50,11 +50,12 @@ pages:
# TODO: Automate this over at mirrors/cronjobs soon. # TODO: Automate this over at mirrors/cronjobs soon.
sync-branch: sync-branch:
stage: sync-repo stage: sync-repo
allow_failure: true
script: script:
- | - |
set -x set -x
eval $(ssh-agent) eval $(ssh-agent)
ssh-add /run/secrets/passwordless ssh-add $PWD/.secretskit/passwordless
git push "git@github.com:ajhalili2006/ajhalili2006.github.io" --mirror || true git push "git@github.com:ajhalili2006/ajhalili2006.github.io" --mirror || true
git push "git@git.sr.ht:~ajhalili2006/web" --mirror || true git push "git@git.sr.ht:~ajhalili2006/web" --mirror || true
git push "git@codeberg.org:ajhalili2006/website" --mirror || true git push "git@codeberg.org:ajhalili2006/website" --mirror || true