48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
|
jobs:
|
||
|
- name: build-site
|
||
|
public: true
|
||
|
build_log_retention:
|
||
|
days: 365
|
||
|
builds: 50
|
||
|
plan:
|
||
|
- get: siterepo
|
||
|
trigger: true
|
||
|
- task: build
|
||
|
config:
|
||
|
platform: linux
|
||
|
image_resource:
|
||
|
type: registry-image
|
||
|
source:
|
||
|
repository: node
|
||
|
inputs:
|
||
|
- name: siterepo
|
||
|
caches:
|
||
|
- path: node_modules
|
||
|
- path: dist
|
||
|
outputs:
|
||
|
- name: sitegen
|
||
|
run:
|
||
|
path: siterepo/.ci/build
|
||
|
- task: deploy
|
||
|
config:
|
||
|
platform: linux
|
||
|
image_resource:
|
||
|
type: registry-image
|
||
|
source:
|
||
|
repository: blasthavers/deploy-base
|
||
|
inputs:
|
||
|
- name: sitegen
|
||
|
- name: siterepo
|
||
|
params:
|
||
|
DEPLOY_KEY: ((deploy_key))
|
||
|
run:
|
||
|
path: siterepo/.ci/deploy
|
||
|
resources:
|
||
|
- name: siterepo
|
||
|
type: git
|
||
|
check_every: never
|
||
|
webhook_token: ((webhook_token))
|
||
|
source:
|
||
|
uri: https://git.blastmud.org/blasthavers/blastmud-site.git
|
||
|
branch: main
|