histoiredunpied/.drone.yml

54 lines
1.4 KiB
YAML

---
# drone encrypt kosssi/histoiredunpied $REGISTRY_PASSWORD
kind: secret
name: REGISTRY_PASSWORD
data: KfwWUQN54AA9BJakPJPagNNAS60amR1Iknerx0jESiupz+W+zn7EoEo4WMmXJVu043AxPcCbGlFN+KTmt8eyAOyXqWK3zMUoBXHYaPQa
---
# drone encrypt kosssi/histoiredunpied $REGISTRY_USER
kind: secret
name: REGISTRY_USER
data: DbrlPJuIlZPS9A/GYlSP0Og/SFJY8flEgEFrebtCa/AnOg==
---
# drone encrypt kosssi/histoiredunpied "{\"auths\":{\"https://registry.lamelio.fr\":{\"auth\":\"$(echo -n "$REGISTRY_USER:$REGISTRY_PASSWORD" | base64)\",\"email\":\"$REGISTRY_USER\"}}}"
kind: secret
name: REGISTRY_CONFIG
data: bANljkgq1agad9UeQ9GVeKzIOUvfVRqCfk7AwrkmpShFEDhFVir/lk8r/3e8a8N6xPbrgCSvt8rim9E0LypTcS6w47khZGYcI7ImQqGIR3DwWhPprY7Z2TT+9RFj8q2Tti/g3S14JZX2ELrLLno/FrqhNkZVioWjP48CtzToV2FcIvTJOvDJbGWWf4v9AV4VcCP1IwPTO4YbQVdVVr26N2wJ1AsZZPxxfyk7ICTv
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm
steps:
- name: install
image: registry.lamelio.fr/hugo
commands:
- git submodule update --init
- (cd themes/hugo-theme-lowtech && npm i)
- npm run build
when:
branch:
- master
- name: docker
image: plugins/docker
settings:
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
repo: registry.lamelio.fr/histoiredunpied
registry: registry.lamelio.fr
auto_tag: true
tags:
- latest
image_pull_secrets:
- REGISTRY_CONFIG