feat: Ajout du déploiement dans Garage

This commit is contained in:
Simon 2022-11-28 10:30:23 +01:00
parent 42b30dc011
commit f1fe4975e1
3 changed files with 56 additions and 0 deletions

View File

@ -28,6 +28,30 @@ kind: secret
name: DIRECTUS_TOKEN name: DIRECTUS_TOKEN
data: 1aojESEVwAY0jmHQfpWt5bGbbnMtFiv6mQMEQjC368oJZeMSFPTZL9/mTQAAqSbEHyEHV1r19Hf/k/Oq data: 1aojESEVwAY0jmHQfpWt5bGbbnMtFiv6mQMEQjC368oJZeMSFPTZL9/mTQAAqSbEHyEHV1r19Hf/k/Oq
---
# drone encrypt weko/lestoitsduval $AWS_ACCESS_KEY_ID
kind: secret
name: STAGING_AWS_ACCESS_KEY_ID
data: 4jsEHoEytCQ2pikznPCWgo+cG7TEhg3W548jTPRmg+C+VplsyCRxEWY77zkZIxMN3ytPrZhs
---
# drone encrypt weko/lestoitsduval $AWS_SECRET_ACCESS_KEY
kind: secret
name: STAGING_AWS_SECRET_ACCESS_KEY
data: kIoG1rr56kvo8Uw7TpVZswp30yAF8iom/uu1dOwy9+YF1y1WiJNi4K2x1JkgOWd/u7vtrog60BBhD7gR65qhN0+C2dgs40u6xl2YJ/C6WITqacu4OP6DG38RQw4=
---
# drone encrypt weko/lestoitsduval $AWS_ACCESS_KEY_ID
kind: secret
name: PRODUCTION_AWS_ACCESS_KEY_ID
data: gkyG257s/FxB7QnSA13qzWBMJqP7foYUtRgu9yQB3ZRHDJmCm/frofIX1kkU+Nce987rDpUj
---
# drone encrypt weko/lestoitsduval $AWS_SECRET_ACCESS_KEY
kind: secret
name: PRODUCTION_AWS_SECRET_ACCESS_KEY
data: 1oL1XSfD86/BR+NA2XyhGDGUmd9+4d7Br1IFcP/63hekgtzyPsXPKZuy30ruFJisJsskl/1+gs2GJ+XNLcdFJzMpx7BwKBrLkCBS/pQy2xvXbUzJPd6HIiSyrhY=
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -70,6 +94,16 @@ steps:
commands: commands:
- node themes/hugo-theme-lowtech/scripts/typo - node themes/hugo-theme-lowtech/scripts/typo
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
environment:
AWS_ACCESS_KEY_ID:
from_secret: PRODUCTION_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: PRODUCTION_AWS_SECRET_ACCESS_KEY
commands:
- hugo deploy --environment production
- name: push docker image on registry - name: push docker image on registry
image: plugins/docker image: plugins/docker
settings: settings:
@ -132,6 +166,16 @@ steps:
commands: commands:
- node themes/hugo-theme-lowtech/scripts/typo - node themes/hugo-theme-lowtech/scripts/typo
- name: deploy
image: klakegg/hugo:0.101.0-ext-debian-ci
environment:
AWS_ACCESS_KEY_ID:
from_secret: STAGING_AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY:
from_secret: STAGING_AWS_SECRET_ACCESS_KEY
commands:
- hugo deploy --environment staging
- name: push docker image on registry - name: push docker image on registry
image: plugins/docker image: plugins/docker
settings: settings:

View File

@ -1 +1,7 @@
baseURL: https://lestoitsduval.fr/ baseURL: https://lestoitsduval.fr/
deployment:
targets:
- name: production
URL: >-
s3://lestoitsduval.fr?endpoint=http://10.20.20.25:3900&disableSSL=true&s3ForcePathStyle=true&region=garage

View File

@ -1 +1,7 @@
baseURL: https://staging.lestoitsduval.fr/ baseURL: https://staging.lestoitsduval.fr/
deployment:
targets:
- name: staging
URL: >-
s3://staging.lestoitsduval.fr?endpoint=http://10.20.20.25:3900&disableSSL=true&s3ForcePathStyle=true&region=garage