Compare commits

..

2 commits

View file

@ -5,6 +5,9 @@ name: deploy
steps: steps:
- name: build - name: build
image: node:18-alpine image: node:18-alpine
volumes:
- name: website-data
path: /host-target
commands: commands:
# Install git-lfs in the build container # Install git-lfs in the build container
- apk add --no-cache git git-lfs - apk add --no-cache git git-lfs
@ -14,6 +17,9 @@ steps:
# Install dependencies and build # Install dependencies and build
- npm ci || npm install - npm ci || npm install
- npm run build || npm build - npm run build || npm build
# Copy built files to deployment directory
- cp -a . /host-target
- chmod -R 777 /host-target
- name: sync-files - name: sync-files
image: alpine:latest image: alpine:latest
@ -21,14 +27,9 @@ steps:
- name: website-data - name: website-data
path: /host-target path: /host-target
commands: commands:
# Install git-lfs in the container # Verify deployment was successful
- apk add --no-cache git git-lfs - ls -la /host-target
# Initialize LFS and pull LFS files - echo "Deployment completed successfully"
- git lfs install
- git lfs pull
# Then copy all files (including LFS files)
- cp -a . /host-target
- chmod -R 777 /host-target
volumes: volumes:
- name: website-data - name: website-data