chore: try on test domain #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
push-to-balena-cloud: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: get ssh key | |
env: | |
SSH_KEY_FILE: ${{ secrets.SSH_KEY_FILE }} | |
run: | | |
echo "$SSH_KEY_FILE" | base64 -d > .balena-key | |
chmod -R 0600 .balena-key | |
- name: add git remote | |
run: | | |
git remote add balena [email protected]:balenacloud90/ii-nz.git | |
- name: push | |
env: | |
GIT_SSH_COMMAND: ssh -i .balena-key -o StrictHostKeyChecking=accept-new | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
run: | | |
git push -f balena $BRANCH_NAME:master | |
- name: clean up | |
if: ${{ always() }} | |
run: | | |
rm -rfv .balena-key |