Files
lti-web-client/.gitlab-ci.yml
T
2025-11-10 06:59:47 +00:00

27 lines
500 B
YAML

stages:
- build
- deploy
build_static:
stage: build
image: node:18-alpine
script:
- env | grep NEXT_PUBLIC_
- npm ci
- npx next build
artifacts:
paths:
- out/
expire_in: 1 hour
only:
- devops-s3
deploy_s3:
stage: deploy
image:
name: amazon/aws-cli:latest
entrypoint: ["/bin/sh", "-c"]
script:
- aws s3 sync out/ s3://$(echo $S3_BUCKET | tr -d '\r\n')/ --delete --region $(echo $AWS_DEFAULT_REGION | tr -d '\r\n')
only:
- devops-s3