Skip to content

Commit

Permalink
setting up ssh connection to production
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Mar 27, 2024
1 parent e0a91ec commit a715f8b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,21 @@ jobs:
name: "Trigger production deploy (TODO)"
runs-on: ubuntu-latest
environment: production
concurrency:
group: deploy-to-production
cancel-in-progress: true
needs:
- docker
- poke_gitops
# concurrency:
# group: deploy-to-production
# cancel-in-progress: true
# needs:
# - docker
# - poke_gitops
steps:
- run: echo "Triggering production deploy (TODO -> create script to deploy to production)"
- run: echo "Triggering production deploy"
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan code.gouv.fr >> ~/.ssh/known_hosts
ssh -o StrictHostKeyChecking=no deployer@code.gouv.fr "ls -la websites"
ssh -o StrictHostKeyChecking=no web@code.gouv.fr "ls -la websites"
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

Expand Down

0 comments on commit a715f8b

Please sign in to comment.