Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Sep 16, 2023
1 parent 9922c68 commit d69599a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,19 @@ jobs:
BLACKBOX_PUBKEY: ${{ secrets.BLACKBOX_PUBLIC_KEY }}
BLACKBOX_PRIVKEY: ${{ secrets.BLACKBOX_PRIVATE_KEY }}

- name: Setup SSH key
run: |
mkdir -p ~/.ssh/
echo "$SSH_PRIVATE_KEY" > ~/.ssh/pkey
sudo chmod 600 ~/.ssh/pkey
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.OCF_SSH_KEY }}
SSH_KNOWN_HOSTS: ${{ secrets.OCF_SSH_KNOWN_HOSTS }}

- name: Deploy
run: |
poetry run fab deploy --revision ${{ github.sha }}
poetry run fab deploy -i ~/.ssh/pkey --revision ${{ github.sha }}
env:
HKNWEB_MODE: ${{ vars.HKNWEB_MODE }}

0 comments on commit d69599a

Please sign in to comment.