mirror test

This commit is contained in:
cnst
2024-08-17 19:19:51 +02:00
parent 2dec05d90e
commit 44e77b6d1a
2 changed files with 24 additions and 7 deletions

17
.build.yml Normal file
View File

@@ -0,0 +1,17 @@
image: alpine/edge
secrets:
- "cat ${config.sops.secrets.ssh_user.path}"
sources:
- git@git.sr.ht:~canasta/cnix
environment:
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
tasks:
- setup: |
# This is for not having to cd into your <repo> for each task
echo 'cd <repo>' >> ~/.buildenv
- check: |
if [ "$(git rev-parse origin/main)" != "$(git rev-parse HEAD)" ]; then \
complete-build; \
fi
- mirror: |
git push --force --mirror git@github.com:cnsta/cnix.git