Skip to content

chore: improve command for preparing cf-t secret #8

chore: improve command for preparing cf-t secret

chore: improve command for preparing cf-t secret #8

Workflow file for this run

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