Skip to content

Commit

Permalink
feat: add ops-CD on equinoxe
Browse files Browse the repository at this point in the history
  • Loading branch information
baptou12 committed Jul 17, 2023
1 parent 7c734f8 commit 4f40514
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ on:
workflow_dispatch:

env:
SSH_HOST: 51.91.16.19
SSH_USER: debian
ECLIPSE_SSH_HOST: 51.91.16.19
ECLIPSE_SSH_USER: debian
EQUINOXE_SSH_HOST: 5.135.137.147
EQUINOXE_SSH_USER: debian


jobs:
install:
Expand Down Expand Up @@ -67,4 +70,11 @@ jobs:
mkdir -p ~/.ssh/
echo "${{ secrets.ECLIPSE_PRIVATE_KEY }}" > ~/.ssh/eclipse
chmod 600 ~/.ssh/eclipse
ssh -o StrictHostKeyChecking=no ${{ env.SSH_USER }}@${{ env.SSH_HOST }} -i ~/.ssh/eclipse
ssh -o StrictHostKeyChecking=no ${{ env.ECLIPSE_SSH_USER }}@${{ env.ECLIPSE_SSH_HOST }} -i ~/.ssh/eclipse
- name: Equinoxe Deployment
shell: bash
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.EQUINOXE_PRIVATE_KEY }}" > ~/.ssh/equinoxe
chmod 600 ~/.ssh/equinoxe
ssh -o StrictHostKeyChecking=no ${{ env.EQUINOXE_SSH_HOST }}@${{ env.EQUINOXE_SSH_USER }} -i ~/.ssh/equinoxe

0 comments on commit 4f40514

Please sign in to comment.