chss/.drone.yml
Ashhhleyyy 1be2112524
Some checks failed
continuous-integration/drone/push Build is failing
fix(ci): Wrong image tag
2022-07-05 14:08:43 +00:00

34 lines
732 B
YAML

kind: pipeline
type: docker
name: Build
platform:
os: linux
arch: arm64
steps:
- name: Install dependencies
image: gplane/pnpm:node14-alpine
commands:
- pnpm install --frozen-lockfile
- name: Check formatting
image: gplane/pnpm:node14-alpine
commands:
- pnpm format:check
- name: Build site
image: gplane/pnpm:node14-alpine
commands:
- pnpm build
- name: Deploy site
image: alpine
commands:
- apk add curl ca-certificates zip
- cd dist && zip -r ../deploy.zip * && cd ..
- 'curl --fail -F file=@deploy.zip -H "Authorization: $DEPLOY_TOKEN" https://projects.ashhhleyyy.dev/chss'
environment:
DEPLOY_TOKEN:
from_secret: deploy_token
trigger:
event: [push]
branch: [main]