test apk build and upload
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
92
.drone.yml
92
.drone.yml
@@ -1,6 +1,50 @@
|
|||||||
|
# kind: pipeline
|
||||||
|
# type: docker
|
||||||
|
# name: server_build_and_test
|
||||||
|
#
|
||||||
|
# trigger:
|
||||||
|
# branch:
|
||||||
|
# - main
|
||||||
|
# event:
|
||||||
|
# - push
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - name: build_server
|
||||||
|
# image: node
|
||||||
|
# commands:
|
||||||
|
# - npm ci -w @calchat/shared
|
||||||
|
# - npm ci -w @calchat/server
|
||||||
|
# - npm run build -w @calchat/server
|
||||||
|
#
|
||||||
|
# - name: jest_server
|
||||||
|
# image: node
|
||||||
|
# commands:
|
||||||
|
# - npm run test -w @calchat/server
|
||||||
|
#
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
# kind: pipeline
|
||||||
|
# type: docker
|
||||||
|
# name: check_for_formatting
|
||||||
|
#
|
||||||
|
# trigger:
|
||||||
|
# branch:
|
||||||
|
# - main
|
||||||
|
# event:
|
||||||
|
# - push
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - name: format_check
|
||||||
|
# image: node
|
||||||
|
# commands:
|
||||||
|
# - npm ci
|
||||||
|
# - npm run check_format
|
||||||
|
#
|
||||||
|
# ---
|
||||||
|
#
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: test_s3_upload
|
name: deploy_latest
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@@ -9,10 +53,46 @@ trigger:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: create_dummy
|
# - name: upload_latest
|
||||||
image: alpine
|
# image: plugins/docker
|
||||||
|
# settings:
|
||||||
|
# registry: gitea.gilmour109.de
|
||||||
|
# repo: gitea.gilmour109.de/gilmour109/calchat-server
|
||||||
|
# dockerfile: apps/server/docker/Dockerfile
|
||||||
|
# tags:
|
||||||
|
# - latest
|
||||||
|
# username:
|
||||||
|
# from_secret: gitea_username
|
||||||
|
# password:
|
||||||
|
# from_secret: gitea_password
|
||||||
|
#
|
||||||
|
# - name: deploy_to_vps
|
||||||
|
# image: appleboy/drone-ssh
|
||||||
|
# settings:
|
||||||
|
# host:
|
||||||
|
# - 10.0.0.1
|
||||||
|
# username: root
|
||||||
|
# password:
|
||||||
|
# from_secret: vps_ssh_password
|
||||||
|
# envs:
|
||||||
|
# - gitea_username
|
||||||
|
# - gitea_password
|
||||||
|
# port: 22
|
||||||
|
# command_timeout: 10m
|
||||||
|
# script:
|
||||||
|
# - docker login -u $GITEA_USERNAME -p $GITEA_PASSWORD gitea.gilmour109.de
|
||||||
|
# - docker pull gitea.gilmour109.de/gilmour109/calchat-server:latest
|
||||||
|
# - docker compose -f /root/calchat-mongo/docker-compose.yml up -d
|
||||||
|
|
||||||
|
- name: build_apk
|
||||||
|
image: gitea.gilmour109.de/gilmour109/eas-build:latest
|
||||||
|
environment:
|
||||||
|
EXPO_TOKEN:
|
||||||
|
from_secret: expo_token
|
||||||
commands:
|
commands:
|
||||||
- echo "test" > apps/client/calchat.apk
|
- npm ci
|
||||||
|
- npm run build -w @calchat/shared
|
||||||
|
- npm run -w @calchat/client build:apk
|
||||||
|
|
||||||
- name: upload_apk
|
- name: upload_apk
|
||||||
image: minio/mc
|
image: minio/mc
|
||||||
@@ -25,6 +105,10 @@ steps:
|
|||||||
- mc alias set garage https://garage.gilmour109.de $ACCESS_KEY $SECRET_KEY --api S3v4 --path on
|
- 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/
|
- mc cp apps/client/calchat.apk garage/calchat-releases/
|
||||||
|
|
||||||
|
# depends_on:
|
||||||
|
# - server_build_and_test
|
||||||
|
# - check_for_formatting
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|||||||
Reference in New Issue
Block a user