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
2020-05-21 17:19:02 +02:00
data: OEvQkKRQWXNAFMEVYWrKqKjawvzeccLVCpYLHew8kufit+xxvbsePwcTI1+D1QWVLqJp8k8ShISD3xyzxp7wqXcV0hsF3kYcsxc7zg5y
2020-03-21 09:25:13 +01:00
---
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
2020-05-21 17:19:02 +02:00
data: cMOL24CRvJvIFwxXp6G/oyekU7g8G/8UJJ3XuoRsbK2bZA==
2020-03-21 09:25:13 +01:00
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
2020-05-21 17:19:02 +02:00
data: HGEQqB3NrTqH2dF715fgDCNWDmQXRY1psgbYd0IH9O4eByqXdPBWAY5QUI8J3IxK7IpWObB418jWqwPUAVegzOEAn/bAn1PUVOV+cjG1PfbbvHIUFyYvCojGmf2p+NucXACo3KrebrnPpf6lUvftH9xWLLFW3e/ECnSq9rq5v0xh1fFwlghkwjjxOEfDHhlHx+eXlSY6nEuNH2svl1wo11xTqemSOPgGlpzJ
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
2020-05-21 17:40:49 +02:00
arch: arm64
2020-03-17 11:29:10 +01:00
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