histoiredunpied/.drone.yml

55 lines
943 B
YAML

---
kind: secret
name: REGISTRY_PASSWORD
data: KfwWUQN54AA9BJakPJPagNNAS60amR1Iknerx0jESiupz+W+zn7EoEo4WMmXJVu043AxPcCbGlFN+KTmt8eyAOyXqWK3zMUoBXHYaPQa
---
kind: secret
name: REGISTRY_USER
data: DbrlPJuIlZPS9A/GYlSP0Og/SFJY8flEgEFrebtCa/AnOg==
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm
steps:
- name: install
image: kosssi/hugo:0.0.1
commands:
- git submodule update --init
- (cd themes/hugo-theme-lowtech && npm i)
- npm run build
when:
branch:
- master
event:
- push
- name: docker
image: plugins/docker
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
repo: registry.lamelio.fr/kosssi/histoiredunpied
registry: registry.lamelio.fr
auto_tag: true
tags:
- latest
- name: logs
image: node:12.16.1
commands:
- ls -alh themes
when:
event:
- cron
cron:
- nightly