feat: Suppression du déploiement par Docker
This commit is contained in:
parent
f1fe4975e1
commit
4f089fdad0
|
@ -1,4 +0,0 @@
|
||||||
# Ignore everything
|
|
||||||
**
|
|
||||||
|
|
||||||
!public
|
|
52
.drone.yml
52
.drone.yml
|
@ -1,21 +1,3 @@
|
||||||
---
|
|
||||||
# drone encrypt weko/lestoitsduval $REGISTRY_PASSWORD
|
|
||||||
kind: secret
|
|
||||||
name: REGISTRY_PASSWORD
|
|
||||||
data: Q/Y+XPpJN0vxgDWzGVIVUZJ8PE0ngvYT/1NEFG+ZfnvoFa1c+ZSkhCeMk8OE/IC12Uw2VGebBsD1iCrkffKnA5GPIS+uCmtF1K/2o4+/
|
|
||||||
|
|
||||||
---
|
|
||||||
# drone encrypt weko/lestoitsduval $REGISTRY_USER
|
|
||||||
kind: secret
|
|
||||||
name: REGISTRY_USER
|
|
||||||
data: wr3cyRh4G34wu8sbhEm96IUXZft0rDeGkkc5M/1N501H9Q==
|
|
||||||
|
|
||||||
---
|
|
||||||
# drone encrypt weko/lestoitsduval "{\"auths\":{\"https://registry.weko.io\":{\"auth\":\"$(echo -n "$REGISTRY_USER:$REGISTRY_PASSWORD" | base64)\",\"email\":\"$REGISTRY_USER\"}}}"
|
|
||||||
kind: secret
|
|
||||||
name: REGISTRY_CONFIG
|
|
||||||
data: lmQ25YQEai7VpYj8lUz9859JAV/aeQ9V5ulZhqVVQcni8usA9LF2IQFisekF69yu6ksp+9PBDHNKQA4GX7N/tFAlEdJySHUyr3qtrjUXRBs54E1G/GHVzY1/NwCytIT8Ro9d9H0XRiAbGnOQA2sjPFcb7CZ5kDZRmNHHHq6fplOdIM5ysYhiDIYH7TW+7dYm4ke8SBFhk4oKR7OMsAC+mo9++2dJ5W0FCro/
|
|
||||||
|
|
||||||
---
|
---
|
||||||
# drone encrypt weko/lestoitsduval $DIRECTUS_URL
|
# drone encrypt weko/lestoitsduval $DIRECTUS_URL
|
||||||
kind: secret
|
kind: secret
|
||||||
|
@ -82,7 +64,7 @@ steps:
|
||||||
- node scripts/directus-to-markdown/index.js
|
- node scripts/directus-to-markdown/index.js
|
||||||
|
|
||||||
- name: build website
|
- name: build website
|
||||||
image: jakejarvis/hugo-extended
|
image: klakegg/hugo:0.101.0-ext-debian-ci
|
||||||
commands:
|
commands:
|
||||||
- hugo --minify --environment production
|
- hugo --minify --environment production
|
||||||
|
|
||||||
|
@ -104,21 +86,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- hugo deploy --environment production
|
- hugo deploy --environment production
|
||||||
|
|
||||||
- name: push docker image on registry
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USER
|
|
||||||
password:
|
|
||||||
from_secret: REGISTRY_PASSWORD
|
|
||||||
repo: registry.weko.io/lestoitsduval
|
|
||||||
registry: registry.weko.io
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- REGISTRY_CONFIG
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
host:
|
host:
|
||||||
|
@ -154,7 +121,7 @@ steps:
|
||||||
- DRAFT=true node scripts/directus-to-markdown/index.js
|
- DRAFT=true node scripts/directus-to-markdown/index.js
|
||||||
|
|
||||||
- name: build website
|
- name: build website
|
||||||
image: jakejarvis/hugo-extended
|
image: klakegg/hugo:0.101.0-ext-debian-ci
|
||||||
commands:
|
commands:
|
||||||
- hugo --minify --buildDrafts --buildFuture --environment staging
|
- hugo --minify --buildDrafts --buildFuture --environment staging
|
||||||
|
|
||||||
|
@ -176,21 +143,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- hugo deploy --environment staging
|
- hugo deploy --environment staging
|
||||||
|
|
||||||
- name: push docker image on registry
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: REGISTRY_USER
|
|
||||||
password:
|
|
||||||
from_secret: REGISTRY_PASSWORD
|
|
||||||
repo: registry.weko.io/lestoitsduval
|
|
||||||
registry: registry.weko.io
|
|
||||||
tags:
|
|
||||||
- staging
|
|
||||||
|
|
||||||
image_pull_secrets:
|
|
||||||
- REGISTRY_CONFIG
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: hugo-theme-lowtech_node_modules
|
- name: hugo-theme-lowtech_node_modules
|
||||||
host:
|
host:
|
||||||
|
|
2
.env
2
.env
|
@ -1,5 +1,3 @@
|
||||||
DOCKER_CONTEXT=vert.weko.resilien
|
|
||||||
NAME=ltdv
|
NAME=ltdv
|
||||||
URL=lestoitsduval.fr
|
URL=lestoitsduval.fr
|
||||||
STATS_CONTAINER=ltdv-stats
|
|
||||||
DIRECTUS_URL=https://contenu.${URL}
|
DIRECTUS_URL=https://contenu.${URL}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM registry.weko.io/nginx-lowtech:0.1.0
|
|
||||||
|
|
||||||
# Copie des sources du site
|
|
||||||
COPY public /usr/share/nginx/html
|
|
|
@ -1,40 +0,0 @@
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
ltdv-log:
|
|
||||||
name: ltdv-log
|
|
||||||
ltdv-stats:
|
|
||||||
name: ltdv-stats
|
|
||||||
|
|
||||||
services:
|
|
||||||
ltdv-prod:
|
|
||||||
container_name: ltdv-prod
|
|
||||||
build: .
|
|
||||||
image: registry.weko.io/lestoitsduval:latest
|
|
||||||
restart: always
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.ltdv-prod.rule=Host(`${URL}`)"
|
|
||||||
- "traefik.http.routers.ltdv-prod.entrypoints=web"
|
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
|
||||||
volumes:
|
|
||||||
- ltdv-log:/var/log/nginx
|
|
||||||
- ltdv-stats:/usr/share/nginx/html/stats
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
|
|
||||||
ltdv-stats:
|
|
||||||
container_name: ltdv-stats
|
|
||||||
image: registry.weko.io/goaccess:1.5.1
|
|
||||||
restart: always
|
|
||||||
depends_on:
|
|
||||||
- ltdv-prod
|
|
||||||
volumes:
|
|
||||||
- ltdv-log:/var/log/nginx
|
|
||||||
- ltdv-stats:/usr/share/nginx/html/stats
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
name: traefik
|
|
|
@ -1,20 +0,0 @@
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
name: traefik
|
|
||||||
|
|
||||||
services:
|
|
||||||
ltdv-staging:
|
|
||||||
container_name: ltdv-staging
|
|
||||||
build: .
|
|
||||||
image: registry.weko.io/lestoitsduval:staging
|
|
||||||
restart: always
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.ltdv-staging.rule=Host(`staging.${URL}`)"
|
|
||||||
- "traefik.http.routers.ltdv-staging.entrypoints=web"
|
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
|
||||||
volumes:
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
Loading…
Reference in New Issue