- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
working_directory: ~/repo
|
|
docker:
|
|
- image: circleci/node:8.11.3
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: authorize npm
|
|
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
|
- restore_cache:
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
- run:
|
|
name: run npm install
|
|
command: npm install
|
|
- save_cache:
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
paths:
|
|
- ./node_modules
|
|
- run: mkdir ~/junit
|
|
- run:
|
|
name: build & test
|
|
command: npm run ci
|
|
when: always
|
|
- run: cp test-results.xml ~/junit/test-results.xml
|
|
- store_test_results:
|
|
path: ~/junit
|
|
- store_artifacts:
|
|
path: ~/junit
|
|
|
|
build_deploy_npm:
|
|
working_directory: ~/repo
|
|
docker:
|
|
- image: circleci/node:8.11.3
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: authorize npm
|
|
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
|
- restore_cache:
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
- run:
|
|
name: run npm install
|
|
command: npm install
|
|
- save_cache:
|
|
key: dependency-cache-{{ checksum "package.json" }}
|
|
paths:
|
|
- ./node_modules
|
|
- run: mkdir ~/junit
|
|
- run:
|
|
name: build & test
|
|
command: npm run ci
|
|
when: always
|
|
- run: cp test-results.xml ~/junit/test-results.xml
|
|
- store_test_results:
|
|
path: ~/junit
|
|
- store_artifacts:
|
|
path: ~/junit
|
|
- run:
|
|
name: publish package to npm
|
|
command: npm publish
|
|
|
|
workflows:
|
|
version: 2
|
|
build_deploy:
|
|
jobs:
|
|
- build:
|
|
context: secrets
|
|
- build_deploy_npm:
|
|
context: secrets
|
|
filters:
|
|
tags:
|
|
only: /.*/
|
|
branches:
|
|
ignore: /.*/
|