feat: Ajout de la prod
This commit is contained in:
parent
22a69b6162
commit
917115d851
101
.drone.yml
101
.drone.yml
|
@ -28,67 +28,46 @@ kind: secret
|
||||||
name: DIRECTUS_TOKEN
|
name: DIRECTUS_TOKEN
|
||||||
data: C4N8jh2kDORa5vo2mqOcqbBLLBXdcnHNDq9sK6+R9gzemeyzLp3K7ENw5ZibVYAJ2VEYylQr9zvHFeFE
|
data: C4N8jh2kDORa5vo2mqOcqbBLLBXdcnHNDq9sK6+R9gzemeyzLp3K7ENw5ZibVYAJ2VEYylQr9zvHFeFE
|
||||||
|
|
||||||
# ---
|
---
|
||||||
# kind: pipeline
|
kind: pipeline
|
||||||
# type: docker
|
type: docker
|
||||||
# name: prod
|
name: prod
|
||||||
#
|
|
||||||
# platform:
|
platform:
|
||||||
# os: linux
|
os: linux
|
||||||
# arch: arm64
|
arch: arm64
|
||||||
#
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: install submodule
|
- name: install npm
|
||||||
# image: drone/git
|
image: node:current-alpine
|
||||||
# commands:
|
volumes:
|
||||||
# - git submodule update --init
|
- name: node_modules
|
||||||
#
|
path: /drone/src/node_modules
|
||||||
# - name: install npm
|
commands:
|
||||||
# image: node:current-alpine
|
- npm i
|
||||||
# volumes:
|
- npm run fetchData
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- npm run lint
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
- npm run build
|
||||||
# # environment:
|
|
||||||
# # DIRECTUS_URL:
|
- name: push docker image on registry
|
||||||
# # from_secret: DIRECTUS_URL
|
image: plugins/docker
|
||||||
# # DIRECTUS_TOKEN:
|
settings:
|
||||||
# # from_secret: DIRECTUS_TOKEN
|
username:
|
||||||
# commands:
|
from_secret: REGISTRY_USER
|
||||||
# - (cd themes/hugo-theme-lowtech && npm i)
|
password:
|
||||||
# # - node scripts/directus-to-markdown/index.js
|
from_secret: REGISTRY_PASSWORD
|
||||||
#
|
repo: registry.weko.io/scores_ceiba
|
||||||
# - name: build website
|
registry: registry.weko.io
|
||||||
# image: jakejarvis/hugo-extended
|
tags:
|
||||||
# commands:
|
- latest
|
||||||
# - hugo --minify --environment production
|
|
||||||
#
|
image_pull_secrets:
|
||||||
# - name: typo
|
- REGISTRY_CONFIG
|
||||||
# image: node:current-alpine
|
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
- name: node_modules
|
||||||
# path: /drone/src/themes/hugo-theme-lowtech/node_modules
|
host:
|
||||||
# commands:
|
path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/node_modules
|
||||||
# - node themes/hugo-theme-lowtech/scripts/typo
|
|
||||||
#
|
|
||||||
# - name: push docker image on registry
|
|
||||||
# image: plugins/docker
|
|
||||||
# settings:
|
|
||||||
# username:
|
|
||||||
# from_secret: REGISTRY_USER
|
|
||||||
# password:
|
|
||||||
# from_secret: REGISTRY_PASSWORD
|
|
||||||
# repo: registry.weko.io/sisa-urfe_fr
|
|
||||||
# registry: registry.weko.io
|
|
||||||
# tags:
|
|
||||||
# - latest
|
|
||||||
#
|
|
||||||
# image_pull_secrets:
|
|
||||||
# - REGISTRY_CONFIG
|
|
||||||
#
|
|
||||||
# volumes:
|
|
||||||
# - name: hugo-theme-lowtech_node_modules
|
|
||||||
# host:
|
|
||||||
# path: /tmp/drone/cache/weko/scores.ceiba-conseil.com/themes/hugo-theme-lowtech
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
Loading…
Reference in New Issue