This commit is contained in:
parent
717b8029bb
commit
d44515461c
2 changed files with 35 additions and 31 deletions
31
.drone.yml
31
.drone.yml
|
@ -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
|
35
.forgejo/workflows/deploy.yaml
Normal file
35
.forgejo/workflows/deploy.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue