feat: experimental minio-based deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Ashhhleyyy 2023-07-04 23:02:47 +01:00
parent 7f86c5aeb7
commit 867a2eb2af
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -1,7 +1,7 @@
platform: linux/arm64 platform: linux/arm64
pipeline: pipeline:
build-and-deploy: build:
image: nixos/nix image: nixos/nix
commands: commands:
- nix --experimental-features 'nix-command flakes' build - nix --experimental-features 'nix-command flakes' build
@ -10,6 +10,18 @@ pipeline:
- 'nix --experimental-features "nix-command flakes" run nixpkgs#curl -- --fail --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/caaard/$DRONE_COMMIT_SHA/caaard.zip' - 'nix --experimental-features "nix-command flakes" run nixpkgs#curl -- --fail --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/caaard/$DRONE_COMMIT_SHA/caaard.zip'
secrets: secrets:
- GITEA_TOKEN - GITEA_TOKEN
deploy:
image: woodpeckerci/plugin-s3
settings:
bucket: project-sites
source: result/**/*
target: /caaard
path_style: true
endpoint: https://minio.ashhhleyyy.dev
access_key:
from_secret: minio_user
secret_key:
from_secret: minio_password
branches: branches:
- main - main