Files
calchat/.drone.yml
Linus Waldowsky 5b4eece66d
All checks were successful
continuous-integration/drone/push Build is passing
trying minio instead for upload to s3 storage
2026-02-26 22:34:09 +01:00

90 lines
2.0 KiB
YAML

kind: pipeline
type: docker
name: test_s3_upload
trigger:
branch:
- main
event:
- push
steps:
- name: create_dummy
image: alpine
commands:
- echo "test" > apps/client/calchat.apk
- name: upload_apk
image: minio/mc
environment:
ACCESS_KEY:
from_secret: calchat_drone_garage_access_key
SECRET_KEY:
from_secret: calchat_drone_garage_secret_key
commands:
- mc alias set garage https://garage.gilmour109.de $ACCESS_KEY $SECRET_KEY --api S3v4 --path on
- mc cp apps/client/calchat.apk garage/calchat-releases/
---
kind: pipeline
type: docker
name: upload_tag
trigger:
event:
- tag
steps:
- name: upload_tag
image: plugins/docker
settings:
registry: gitea.gilmour109.de
repo: gitea.gilmour109.de/gilmour109/calchat-server
dockerfile: apps/server/docker/Dockerfile
tags:
- ${DRONE_TAG}
username:
from_secret: gitea_username
password:
from_secret: gitea_password
- name: deploy_to_k3s
image: appleboy/drone-ssh
settings:
host:
- 192.168.178.201
username: debian
password:
from_secret: k3s_ssh_password
envs:
- drone_tag
- drone_commit_sha
port: 22
command_timeout: 10m
script:
- export TAG=$DRONE_TAG
- export NAME=$(echo $DRONE_TAG | tr -d '.')
- export COMMIT=$DRONE_COMMIT_SHA
- envsubst < /home/debian/manifest.yml | sudo kubectl apply -f -
- name: build_apk
image: gitea.gilmour109.de/gilmour109/eas-build:latest
environment:
EXPO_TOKEN:
from_secret: expo_token
commands:
- npm ci
- npm run build -w @calchat/shared
- npm run -w @calchat/client build:apk
- name: release_apk
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.gilmour109.de
files:
- calchat.apk
title: ${DRONE_TAG}