1
0
Fork 0

swap CI
Deploy to Artifacts / deploy (push) Successful in 9s Details

This commit is contained in:
Hamcha 2024-04-27 19:35:21 +02:00
parent 717b8029bb
commit d44515461c
Signed by: hamcha
GPG Key ID: 1669C533B8CF6D89
2 changed files with 35 additions and 31 deletions

View File

@ -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

View 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