Skip to content

Commit 8bf6db2

Browse files
committed
Sync from Osuny
1 parent 164ffc2 commit 8bf6db2

3 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/deuxfleurs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,12 @@ jobs:
3232
with:
3333
hugo-version: '0.154.5'
3434
extended: true
35-
withdeploy: true
3635

3736
- name: Compilation du site
3837
run: yarn osuny build
3938

4039
- name: Déploiement Garage
41-
run: hugo deploy --force --maxDeletes -1
40+
run: npx --yes dxfl deploy infrabasse.ademe.osuny.site public/ --yes
4241
env:
4342
AWS_ACCESS_KEY_ID: ${{ secrets.DEUXFLEURS_ACCESS_KEY }}
4443
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEUXFLEURS_SECRET }}

config/production/config.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,3 @@ osuny:
1111
## LANGUAGE
1212
defaultContentLanguage: fr
1313
defaultContentLanguageInSubdir: false
14-
15-
## CACHE
16-
deployment:
17-
matchers:
18-
- pattern: "^.+\\.(woff2|woff|svg|ttf|otf|eot|js|css)$"
19-
cacheControl: "max-age=31536000, no-transform, public"
20-
gzip: true
21-
- pattern: "^.+\\.(png|jpg|jpeg|gif|webp)$"
22-
cacheControl: "max-age=31536000, no-transform, public"
23-
gzip: false
24-
## DEUXFLEURS
25-
workers: 4
26-
targets:
27-
- name: "production"
28-
URL: "s3://infrabasse.ademe.osuny.site?endpoint=https://garage.deuxfleurs.fr&awssdk=v2&use_path_style=true&region=garage&disable_https=false"

deuxfleurs.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[cors]]
2+
allowed_origins = "*"
3+
allowed_methods = ["GET", "POST"]
4+
allowed_headers = "*"
5+
6+
[[headers]]
7+
for = ["**/*.woff2", "**/*.woff", "**/*.svg", "**/*.ttf", "**/*.otf", "**/*.eot", "**/*.js", "**/*.css"]
8+
compress = "gzip"
9+
[headers.values]
10+
Cache-Control = "max-age=31536000, no-transform, public"
11+
12+
[[headers]]
13+
for = ["**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.gif", "**/*.webp"]
14+
[headers.values]
15+
Cache-Control = "max-age=31536000, no-transform, public"

0 commit comments

Comments
 (0)