feat: update Drone CI configuration to include Tailwind CSS build step
This commit is contained in:
parent
a0995281e6
commit
d8d9f1a584
1 changed files with 9 additions and 5 deletions
14
.drone.yml
14
.drone.yml
|
|
@ -3,11 +3,16 @@ type: docker
|
||||||
name: deploy
|
name: deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: install
|
||||||
image: node:18-alpine
|
image: node:18-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm ci || npm install
|
- npm install -D tailwindcss@^3.4.0
|
||||||
- npm run build || npm build
|
|
||||||
|
- name: build-css
|
||||||
|
image: node:18-alpine
|
||||||
|
commands:
|
||||||
|
# Generate optimized CSS from src/input.css styles/main.css
|
||||||
|
- npx tailwindcss -i ./src/input.css -o ./styles/main.css --minify
|
||||||
|
|
||||||
- name: sync-files
|
- name: sync-files
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
@ -16,8 +21,7 @@ steps:
|
||||||
path: /host-target
|
path: /host-target
|
||||||
commands:
|
commands:
|
||||||
- cp -a . /host-target
|
- cp -a . /host-target
|
||||||
|
- chmod -R 755 /host-target
|
||||||
- chmod -R 777 /host-target
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: website-data
|
- name: website-data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue