portfolio/.drone.yml

92 lines
1.6 KiB
YAML
Raw Normal View History

2021-06-17 06:15:45 +00:00
kind: pipeline
type: docker
name: test
trigger:
event:
- push
steps:
- name: test
2021-06-17 06:37:26 +00:00
image: node:lts-alpine
commands:
- npm ci
- npm test
2021-06-17 06:15:45 +00:00
---
kind: pipeline
type: docker
name: deploy-staging
trigger:
event:
- push
2021-06-21 04:17:14 +00:00
branch:
exclude:
- master
2021-06-17 06:15:45 +00:00
steps:
2022-07-25 18:50:30 +00:00
- name: generate-thumbnails
2022-07-25 19:05:51 +00:00
image: zavolab/imagemagick:6.9.10
2022-07-25 18:50:30 +00:00
volumes:
- name: thumbnails
path: /drone/src/images/thumbnails
commands:
2022-07-25 19:08:16 +00:00
- pwd
- ls -la
2022-07-25 18:50:30 +00:00
- ./scripts/process-images.sh
2021-06-17 06:15:45 +00:00
- name: deploy
image: drillster/drone-rsync
2022-07-25 18:50:30 +00:00
volumes:
- name: thumbnails
path: /drone/src/images/thumbnails
2021-06-17 06:53:07 +00:00
settings:
hosts:
- jshaver.net
user: deploy
key:
from_secret: deploy-key
source: ./
2021-06-21 04:17:14 +00:00
target: /var/www/jshaver_net/stage/${DRONE_BRANCH}/
2021-06-17 07:05:29 +00:00
recursive: true
2021-06-17 06:53:07 +00:00
args:
- "--files-from=deploy-list.txt"
2021-06-17 07:20:34 +00:00
---
kind: pipeline
type: docker
name: deploy-master
trigger:
branch:
- master
event:
- push
steps:
2022-07-25 18:50:30 +00:00
- name: generate-thumbnails
2022-07-25 19:05:51 +00:00
image: zavolab/imagemagick:6.9.10
2022-07-25 18:50:30 +00:00
volumes:
- name: thumbnails
path: /drone/src/images/thumbnails
commands:
- ./scripts/process-images.sh
2021-06-17 07:20:34 +00:00
- name: deploy
image: drillster/drone-rsync
2022-07-25 18:50:30 +00:00
volumes:
- name: thumbnails
path: /drone/src/images/thumbnails
2021-06-17 07:20:34 +00:00
settings:
hosts:
- jshaver.net
user: deploy
key:
from_secret: deploy-key
source: ./
target: /var/www/jshaver_net/
recursive: true
args:
- "--files-from=deploy-list.txt"