From f54cb8ec76ed45e8fe7b635f01911935af1ad0eb Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Mon, 6 Jan 2025 10:15:53 +0600 Subject: [PATCH] Fix artifacts paths in CI/CD configuration --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9fcc236..fc51d44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,8 @@ build_backend: - docker save backend:latest > backend.tar artifacts: paths: - - backend.tar + - backend/backend.tar + expire_in: 1 hour only: - main @@ -61,7 +62,8 @@ build_frontend: - docker save frontend:latest > frontend.tar artifacts: paths: - - frontend.tar + - frontend/frontend.tar + expire_in: 1 hour only: - main @@ -71,7 +73,7 @@ deploy: script: - apt-get update -qy - apt-get install -y sshpass - - sshpass -p "$SSH_PASSWORD" scp -o StrictHostKeyChecking=no backend.tar frontend.tar docker-compose.yml root@185.139.70.62:/root/app/ + - sshpass -p "$SSH_PASSWORD" scp -o StrictHostKeyChecking=no backend/backend.tar frontend/frontend.tar docker-compose.yml root@185.139.70.62:/root/app/ - | sshpass -p "$SSH_PASSWORD" ssh -o StrictHostKeyChecking=no root@185.139.70.62 "bash -c ' cd /root/app &&