mirror test
This commit is contained in:
17
.build.yml
Normal file
17
.build.yml
Normal 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
|
||||
Reference in New Issue
Block a user