fix CD part 3
Some checks failed
CI / build-test (push) Successful in 44s
Deploy Staging (Docker) / deploy (push) Failing after 36s

This commit is contained in:
Do Manh Phuong 2026-05-10 23:26:29 +07:00
parent c56b8fd208
commit e3842b301c

View File

@ -17,7 +17,7 @@ jobs:
if [ -z "$IMAGE" ]; then IMAGE="ttmt-frontend"; fi
IMAGE=$(echo "$IMAGE" | tr '[:upper:]' '[:lower:]')
docker build --build-arg NODE_VERSION=22.14.0 -t $IMAGE:staging-${{ github.sha }} .
docker save -o /tmp/ttmt-frontend.tar $IMAGE:staging-${{ github.sha }}
docker save -o $GITHUB_WORKSPACE/ttmt-frontend.tar $IMAGE:staging-${{ github.sha }}
- name: Upload Image Tar
uses: appleboy/scp-action@v0.1.7
@ -26,7 +26,7 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
source: /tmp/ttmt-frontend.tar
source: ttmt-frontend.tar
target: /tmp
- name: Deploy on target (docker compose)