Fix: Update Scaleway deployment and Hugo config
Some checks failed
Deploy to Scaleway / build-and-deploy (pull_request) Failing after 8s

- Use correct environment variables for Scaleway deployment
- Install Scaleway CLI to purge CDN cache
- Add deployment target for S3
This commit is contained in:
darnodo
2025-11-19 17:09:32 +01:00
parent 5ad89847c6
commit a44b42eb97
2 changed files with 14 additions and 8 deletions

View File

@@ -34,19 +34,20 @@ jobs:
run: |
hugo deploy --force --maxDeletes -1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_KEY }}
AWS_REGION: fr-par
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}
- name: Install Scaleway CLI (for Purge only)
run: |
curl -s https://raw.githubusercontent.com/scaleway/scaleway-cli/master/scripts/get.sh | sh
export PATH="$HOME/.scw/bin:$PATH"
scw version
- name: Purge CDN Cache (optional)
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY_ID }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}
SCW_DEFAULT_REGION: fr-par
run: |
scw edge-services pipeline purge pipeline-id=${{ secrets.SCW_PIPELINE_ID }}
export PATH="$HOME/.scw/bin:$PATH"
scw edge-services pipeline purge pipeline-id=${{ secrets.SCW_PIPELINE_ID }}

View File

@@ -1,5 +1,5 @@
baseURL: "https://darnodo.github.io/"
title: 🧑‍💻 Notebook
title: 🧑‍💻 Notebook
theme: hextra
defaultContentLanguage: fr
@@ -47,4 +47,9 @@ params:
markup:
goldmark:
renderer:
unsafe: true
unsafe: true
deployment:
targets:
- name: "notebook-arnodo-fr"
URL: "s3://notebook-arnodo-fr?endpoint=https://s3.fr-par.scw.cloud&region=fr-par"