--- # drone encrypt resilien/resilien.fr $AWS_ACCESS_KEY_ID kind: secret name: STAGING_AWS_ACCESS_KEY_ID data: FfmGMdepp8r8bXErlvn8p+QijBfkTtHHDpyMLEq/MMvF21k5IPgasU6DBSYQmSy3w2deAE/n --- # drone encrypt resilien/resilien.fr $AWS_SECRET_ACCESS_KEY kind: secret name: STAGING_AWS_SECRET_ACCESS_KEY data: KfVK2Dmpj2Pprt9boMvOMWYY3tq6k5d+SF/EpnnZQfK5z7NGaTU8CzMC7m3YcHh+Z7OzTNMK7nbzgoQriLNd5EFfVwvGf2TFW+qSByYkrBOzAYHy/GD4Ejn6mLs= --- # drone encrypt resilien/resilien.fr $AWS_ACCESS_KEY_ID kind: secret name: PRODUCTION_AWS_ACCESS_KEY_ID data: IHBJJpNYL76/4+h3eJQF0dxuHlybyNU7ruM1OOjkM8W1N++IG8FGtFTVi3mHVu1h4DHgc+ux --- # drone encrypt resilien/resilien.fr $AWS_SECRET_ACCESS_KEY kind: secret name: PRODUCTION_AWS_SECRET_ACCESS_KEY data: RciAFkEXLF+Czpk5EclFKU/Nq9ivYoBv5xR96LURauZWLJacfx/o1Pr+1neK+W7R6XJ80nYqNySPex3cce9QjEc3ijr+FVXAHvqZbC2QTYfXv56iiruTljBznaU= --- kind: pipeline type: docker name: prod platform: os: linux arch: arm64 steps: - name: install submodule image: drone/git commands: - git submodule update --init - name: install npm image: node:current-alpine volumes: - name: hugo-theme-lowtech_node_modules path: /drone/src/themes/hugo-theme-lowtech/node_modules commands: - (cd themes/hugo-theme-lowtech && npm i) - name: build website image: klakegg/hugo:0.101.0-ext-debian-ci commands: - hugo --minify --environment production - name: typo image: node:current-alpine volumes: - name: hugo-theme-lowtech_node_modules path: /drone/src/themes/hugo-theme-lowtech/node_modules commands: - 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 trigger: event: - push branch: - main volumes: - name: hugo-theme-lowtech_node_modules host: path: /tmp/drone/cache/resilien/resilien_fr/themes/hugo-theme-lowtech --- kind: pipeline type: docker name: staging platform: os: linux arch: arm64 steps: - name: install submodule image: drone/git commands: - git submodule update --init - name: install npm image: node:current-alpine volumes: - name: hugo-theme-lowtech_node_modules path: /drone/src/themes/hugo-theme-lowtech/node_modules commands: - (cd themes/hugo-theme-lowtech && npm i) - name: build website image: klakegg/hugo:0.101.0-ext-debian-ci commands: - hugo --minify --buildDrafts --buildFuture --environment staging - name: typo image: node:current-alpine volumes: - name: hugo-theme-lowtech_node_modules path: /drone/src/themes/hugo-theme-lowtech/node_modules commands: - 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 trigger: event: - push volumes: - name: hugo-theme-lowtech_node_modules host: path: /tmp/drone/cache/resilien/resilien_fr/themes/hugo-theme-lowtech