deploy(change docker image)
Some checks failed
Deploy Roxane to Preprod / deploy (push) Failing after 19s
Some checks failed
Deploy Roxane to Preprod / deploy (push) Failing after 19s
This commit is contained in:
@@ -8,21 +8,22 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: node:16-bullseye
|
||||
options: --entrypoint ""
|
||||
image: nebulaed/php83-node22
|
||||
|
||||
steps:
|
||||
- name: Configure SSH
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_HOST }} >> ~/.ssh/known_hosts
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -t ed25519 -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_HOST }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy Roxane
|
||||
run: |
|
||||
ssh -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_USER }}@${{ secrets.PREPROD_HOST }} << 'ENDSSH'
|
||||
ssh -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_USER }}@${{ secrets.PREPROD_HOST }} <<'ENDSSH'
|
||||
set -e
|
||||
cd ${{ secrets.PREPROD_PATH }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user