histoiredunpied/.drone.yml

54 lines
1.4 KiB
YAML
Raw Normal View History

2020-03-21 09:25:13 +01:00
---
2020-03-24 11:22:05 +01:00
# drone encrypt kosssi/histoiredunpied $REGISTRY_PASSWORD
2020-03-21 09:25:13 +01:00
kind: secret
name: REGISTRY_PASSWORD
data: KfwWUQN54AA9BJakPJPagNNAS60amR1Iknerx0jESiupz+W+zn7EoEo4WMmXJVu043AxPcCbGlFN+KTmt8eyAOyXqWK3zMUoBXHYaPQa
---
2020-03-24 11:22:05 +01:00
# drone encrypt kosssi/histoiredunpied $REGISTRY_USER
2020-03-21 09:25:13 +01:00
kind: secret
name: REGISTRY_USER
data: DbrlPJuIlZPS9A/GYlSP0Og/SFJY8flEgEFrebtCa/AnOg==
2020-03-24 15:36:04 +01:00
---
2020-05-21 17:13:57 +02:00
# drone encrypt kosssi/histoiredunpied "{\"auths\":{\"https://registry.weko.io\":{\"auth\":\"$(echo -n "$REGISTRY_USER:$REGISTRY_PASSWORD" | base64)\",\"email\":\"$REGISTRY_USER\"}}}"
2020-03-24 15:36:04 +01:00
kind: secret
name: REGISTRY_CONFIG
data: bANljkgq1agad9UeQ9GVeKzIOUvfVRqCfk7AwrkmpShFEDhFVir/lk8r/3e8a8N6xPbrgCSvt8rim9E0LypTcS6w47khZGYcI7ImQqGIR3DwWhPprY7Z2TT+9RFj8q2Tti/g3S14JZX2ELrLLno/FrqhNkZVioWjP48CtzToV2FcIvTJOvDJbGWWf4v9AV4VcCP1IwPTO4YbQVdVVr26N2wJ1AsZZPxxfyk7ICTv
2020-03-24 11:22:05 +01:00
2020-03-17 11:20:11 +01:00
---
kind: pipeline
2020-03-17 11:29:10 +01:00
type: docker
2020-03-17 11:20:11 +01:00
name: default
2020-03-17 11:29:10 +01:00
platform:
os: linux
arch: arm
2020-03-17 11:20:11 +01:00
steps:
- name: install
2020-05-21 17:13:57 +02:00
image: registry.weko.io/hugo
2020-03-17 11:29:10 +01:00
commands:
- git submodule update --init
- (cd themes/hugo-theme-lowtech && npm i)
- npm run build
when:
branch:
- master
2020-03-21 09:25:13 +01:00
- name: docker
image: plugins/docker
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
2020-05-21 17:13:57 +02:00
repo: registry.weko.io/histoiredunpied
registry: registry.weko.io
2020-03-21 09:25:13 +01:00
auto_tag: true
tags:
- latest
2020-03-24 11:22:05 +01:00
2020-03-24 15:36:04 +01:00
image_pull_secrets:
- REGISTRY_CONFIG