From 9062c01346408e8d50ef74e10a89b2e450947452 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 7 May 2024 18:19:49 +0200 Subject: [PATCH] feat(ci): switch to Garage --- .forgejo/workflows/deploy.yml | 12 +++++------- config.toml | 3 +++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index e50bb07..fe61c48 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -22,13 +22,11 @@ jobs: key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-hugomod- - - name: Build + - name: Build & deploy run: | hugo mod get hugo --minify --environment production - - name: Deploy - uses: cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CF_PAGES_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy public --project-name=blog + hugo deploy + env: + AWS_ACCESS_KEY_ID: ${{ secrets.GARAGE_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.GARAGE_SECRET_KEY }} diff --git a/config.toml b/config.toml index 282a7dd..9bf8511 100644 --- a/config.toml +++ b/config.toml @@ -62,3 +62,6 @@ url = "https://www.xing.com/profile/Sebastian_Kurfer" icon = "fa-brands fa-xing" target = "_blank" aria = "Xing Profile" + +[[deployment.targets]] + URL = "s3://blog?endpoint=garage.garage.svc:3900&disableSSL=true&s3ForcePathStyle=true®ion=hel1" \ No newline at end of file