fix CD part 3
This commit is contained in:
parent
c56b8fd208
commit
e3842b301c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user