diff --git a/.drone.yml b/.drone.yml index 6b67452..0efe836 100644 --- a/.drone.yml +++ b/.drone.yml @@ -94,15 +94,18 @@ steps: - npm run build -w @calchat/shared - npm run -w @calchat/client build:apk - - name: release_apk - image: plugins/gitea-release + - name: upload_apk + image: plugins/s3 settings: - api_key: - from_secret: gitea_token - base_url: https://gitea.gilmour109.de - files: - - calchat.apk - title: latest + endpoint: https://garage.gilmour109.de + bucket: calchat-releases + access_key: + from_secret: garage_access_key + secret_key: + from_secret: garage_secret_key + source: calchat.apk + target: / + path_style: true # depends_on: # - server_build_and_test @@ -171,64 +174,3 @@ steps: - calchat.apk title: ${DRONE_TAG} ---- - -kind: pipeline -type: docker -name: upload_commit - -trigger: - event: - - promote - -steps: - - name: upload_commit - image: plugins/docker - settings: - registry: gitea.gilmour109.de - repo: gitea.gilmour109.de/gilmour109/calchat-server - dockerfile: apps/server/docker/Dockerfile - tags: - - ${DRONE_COMMIT_SHA:0:8} - 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_commit_sha - port: 22 - command_timeout: 10m - script: - - export TAG=$(echo $DRONE_COMMIT_SHA | cut -c1-8) - - export NAME=$TAG - - 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_COMMIT_SHA:0:8}