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:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: node:16-bullseye
|
image: nebulaed/php83-node22
|
||||||
options: --entrypoint ""
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure SSH
|
- name: Configure SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
mkdir -p ~/.ssh
|
||||||
chmod 600 ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_HOST }} >> ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -t ed25519 -p ${{ secrets.PREPROD_PORT }} ${{ secrets.PREPROD_HOST }} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Deploy Roxane
|
- name: Deploy Roxane
|
||||||
run: |
|
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
|
set -e
|
||||||
cd ${{ secrets.PREPROD_PATH }}
|
cd ${{ secrets.PREPROD_PATH }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user