gimi/.builds/alpine.yml

27 lines
890 B
YAML
Raw Normal View History

2024-07-23 12:36:43 +02:00
image: alpine/latest
packages:
- git
sources:
- "https://git.sr.ht/~hyro/gimi"
secrets:
2024-07-23 18:01:18 +02:00
- 55691174-b52f-477c-81ea-dd32deff19b8 # github
- 3eaa5e52-e929-4822-842b-e817e0be7e39 # codeberg
2024-07-23 12:36:43 +02:00
tasks:
- sync: |
2024-07-23 12:49:18 +02:00
cd gimi
2024-07-23 12:36:43 +02:00
set +x
2024-07-23 12:36:43 +02:00
git remote add gimi-github git@github.com:xhyrom/gimi.git
2024-07-23 12:48:13 +02:00
ssh-keyscan github.com >> ~/.ssh/known_hosts
2024-07-23 18:01:18 +02:00
echo -e "Host github.com\nUser git\nIdentityFile ${HOME}/.ssh/55691174-b52f-477c-81ea-dd32deff19b8" >> ~/.ssh/config
git push -f --all gimi-github
git push -f --tags gimi-github
git remote add gimi-codeberg git@codeberg.org:xHyroM/gimi.git
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
2024-07-23 18:01:18 +02:00
echo -e "Host codeberg.org\nUser git\nIdentityFile ${HOME}/.ssh/3eaa5e52-e929-4822-842b-e817e0be7e39" >> ~/.ssh/config
git push -f --all gimi-codeberg
git push -f --tags gimi-codeberg
2024-07-23 12:36:43 +02:00
set -x