Your one-stop-cake-shop for everything Freshly Baked has to offer

ci: fix github push workflow

There were various problems with it before - it was only really
half-modified from the tangled.yml workflow we had over on GitHub!

It now works and has been tested to put up a branch with a test push

Changed files
+21 -5
.tangled
workflows
+21 -5
.tangled/workflows/github.yml
··· 8 9 engine: nixery 10 11 steps: 12 - name: Write SSH Key 13 command: | 14 - echo $GITHUB_SSH_KEY > ssh_key 15 - chmod 600 ssh_key 16 - name: Push to GitHub 17 command: | 18 - export GIT_SSH_COMMAND="ssh -i $(realpath ./ssh_key) -o StrictHostKeyChecking=no" 19 - git remote add github git@github.com:freshlybakedca.ke/Patisserie 20 git fetch --unshallow origin 21 git fetch github 22 - git push tangled HEAD
··· 8 9 engine: nixery 10 11 + dependencies: 12 + nixpkgs: 13 + - git 14 + - openssh 15 + 16 steps: 17 - name: Write SSH Key 18 command: | 19 + echo "$KEY_SSH_GITHUB" > /tmp/key-ssh-github 20 + chmod 600 /tmp/key-ssh-github 21 + - name: Add base system files 22 + command: | 23 + # Avoid missing user with UID 0 error on ssh... 24 + echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd 25 + 26 + # Turn off SSH host key checking 27 + echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config 28 + echo "UserKnownHostsFile /dev/null" >> /etc/ssh/ssh_config 29 + 30 + echo "Host github.com" >> /etc/ssh/ssh_config 31 + echo " User git" >> /etc/ssh/ssh_config 32 + echo " IdentityFile /tmp/key-ssh-github" >> /etc/ssh/ssh_config 33 - name: Push to GitHub 34 command: | 35 + git remote add github git@github.com:FreshlyBakedCake/Patisserie.git 36 git fetch --unshallow origin 37 git fetch github 38 + git push github HEAD:refs/heads/release