From d44515461cf64c173aa82753aafcd8aee633bd84 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 27 Apr 2024 19:35:21 +0200 Subject: [PATCH] swap CI --- .drone.yml | 31 ------------------------------ .forgejo/workflows/deploy.yaml | 35 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 31 deletions(-) delete mode 100644 .drone.yml create mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 723f867..0000000 --- a/.drone.yml +++ /dev/null @@ -1,31 +0,0 @@ ---- -kind: pipeline -type: docker -name: default -trigger: - branch: - - master - -steps: - - name: Build - image: klakegg/hugo:ext-alpine - commands: - - hugo version - - hugo --minify --destination /drone/src/build - - - name: Upload - image: plugins/s3 - settings: - bucket: faulty.equipment - access_key: - from_secret: minio_access - secret_key: - from_secret: minio_secret - source: /drone/src/build/**/* - target: / - strip_prefix: /drone/src/build/ - path_style: true - endpoint: https://artifacts.fromouter.space ---- -kind: signature -hmac: 5540cfa020bb0387cd74acdc849de7dafed716dc99c75310ca35927adad2aa16 diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..0e88092 --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,35 @@ +name: Deploy to Artifacts + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: docker + steps: + - uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Setup Hugo + uses: https://github.com/peaceiris/actions-hugo@v3 + with: + hugo-version: "0.125.4" + extended: true + + - name: Build + run: hugo --minify + + - name: Deploy to MinIO + uses: https://github.com/yakubique/minio-upload@v1.1.3 + with: + endpoint: https://artifacts.fromouter.space + access_key: ${{ secrets.MINIO_ACCESS }} + secret_key: ${{ secrets.MINIO_SECRET }} + bucket: faulty.equipment + source: ./public/ + target: / + recursive: true