feat: scp docker-compose.prod
This commit is contained in:
+11
-1
@@ -15,6 +15,9 @@ jobs:
|
|||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: 📥 Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Configuration SSH
|
- name: Configuration SSH
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$HOME/.ssh"
|
mkdir -p "$HOME/.ssh"
|
||||||
@@ -26,6 +29,13 @@ jobs:
|
|||||||
-H "${{ secrets.DEPLOY_HOST }}" \
|
-H "${{ secrets.DEPLOY_HOST }}" \
|
||||||
>> "$HOME/.ssh/known_hosts"
|
>> "$HOME/.ssh/known_hosts"
|
||||||
|
|
||||||
|
- name: 📄 Sync compose.prod.yaml
|
||||||
|
run: |
|
||||||
|
scp \
|
||||||
|
-i "$HOME/.ssh/id_ed25519" \
|
||||||
|
compose.prod.yaml \
|
||||||
|
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/data/docker/landing-server/docker-compose.yml
|
||||||
|
|
||||||
- name: 🚀 Deploy Docker
|
- name: 🚀 Deploy Docker
|
||||||
run: |
|
run: |
|
||||||
ssh \
|
ssh \
|
||||||
@@ -34,7 +44,7 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "Projet"
|
echo "Projet"
|
||||||
cd /data/docker/landing-web
|
cd /data/docker/landing-server
|
||||||
|
|
||||||
echo "Pull nouvelle image"
|
echo "Pull nouvelle image"
|
||||||
docker compose pull
|
docker compose pull
|
||||||
|
|||||||
Reference in New Issue
Block a user