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
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
- name: install
|
||||
image: node:18-alpine
|
||||
commands:
|
||||
- npm ci || npm install
|
||||
- npm run build || npm build
|
||||
- npm install -D tailwindcss@^3.4.0
|
||||
|
||||
- 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
|
||||
image: alpine:latest
|
||||
|
|
@ -16,8 +21,7 @@ steps:
|
|||
path: /host-target
|
||||
commands:
|
||||
- cp -a . /host-target
|
||||
|
||||
- chmod -R 777 /host-target
|
||||
- chmod -R 755 /host-target
|
||||
|
||||
volumes:
|
||||
- name: website-data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue