test/user-journey #3
+5
-4
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
- &node_image node:20-alpine
|
- &node_image node:20-slim
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
install-deps:
|
install-deps:
|
||||||
@@ -112,7 +112,7 @@ steps:
|
|||||||
- dev
|
- dev
|
||||||
|
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
image: node:20-alpine
|
image: *node_image
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
NEXT_TELEMETRY_DISABLED: 1
|
NEXT_TELEMETRY_DISABLED: 1
|
||||||
@@ -123,8 +123,9 @@ steps:
|
|||||||
- lint
|
- lint
|
||||||
- type-check
|
- type-check
|
||||||
commands:
|
commands:
|
||||||
- echo "Installing SSH client"
|
- echo "Checking SSH client availability"
|
||||||
- apk add --no-cache openssh-client rsync
|
- which ssh && echo "SSH client found" || echo "Installing SSH client"
|
||||||
|
- apt-get update && apt-get install -y openssh-client rsync
|
||||||
- echo "Building production artifacts"
|
- echo "Building production artifacts"
|
||||||
- npm run build
|
- npm run build
|
||||||
- echo "Build completed"
|
- echo "Build completed"
|
||||||
|
|||||||
Reference in New Issue
Block a user