|
|
@@ -40,7 +40,13 @@ steps:
|
|
|
- ./test/check_php.sh
|
|
|
|
|
|
trigger:
|
|
|
- event: [ push, pull_request ]
|
|
|
+ event: [ pull_request, push ]
|
|
|
+ ref:
|
|
|
+ - refs/heads/staging/*
|
|
|
+ - refs/heads/beta
|
|
|
+ - refs/heads/release
|
|
|
+ - refs/heads/main
|
|
|
+ - refs/pull/*/head
|
|
|
|
|
|
---
|
|
|
kind: pipeline
|
|
|
@@ -88,7 +94,13 @@ steps:
|
|
|
- ./test/check_php.sh
|
|
|
|
|
|
trigger:
|
|
|
- event: [ push, pull_request ]
|
|
|
+ event: [ pull_request, push ]
|
|
|
+ ref:
|
|
|
+ - refs/heads/staging/*
|
|
|
+ - refs/heads/beta
|
|
|
+ - refs/heads/release
|
|
|
+ - refs/heads/main
|
|
|
+ - refs/pull/*/head
|
|
|
|
|
|
---
|
|
|
kind: pipeline
|
|
|
@@ -107,6 +119,54 @@ steps:
|
|
|
trigger:
|
|
|
event: [ pull_request, push ]
|
|
|
|
|
|
+---
|
|
|
+kind: pipeline
|
|
|
+type: docker
|
|
|
+name: Push to beta atp server
|
|
|
+
|
|
|
+platform:
|
|
|
+ os: linux
|
|
|
+ arch: amd64
|
|
|
+
|
|
|
+steps:
|
|
|
+ - name: Build
|
|
|
+ image: debian:bullseye
|
|
|
+ commands:
|
|
|
+ - ln -snf /etc/localtime && echo CET > /etc/timezone
|
|
|
+ - ./src/hst_autocompile.sh --dontinstalldeps --hestia --debug --cross --noinstall --keepbuild --debug '~localsrc'
|
|
|
+ - mkdir -p ./hestia/
|
|
|
+ - mv /tmp/hestiacp-src/deb/*.deb ./hestia/
|
|
|
+ - name: Upload
|
|
|
+ image: appleboy/drone-scp
|
|
|
+ settings:
|
|
|
+ host:
|
|
|
+ from_secret: apt_server
|
|
|
+ user: root
|
|
|
+ key:
|
|
|
+ from_secret: ssh_key
|
|
|
+ port: 22
|
|
|
+ command_timeout: 2m
|
|
|
+ target: /root/
|
|
|
+ source:
|
|
|
+ - ./hestia/*
|
|
|
+ - name: Publish
|
|
|
+ image: appleboy/drone-ssh
|
|
|
+ settings:
|
|
|
+ host:
|
|
|
+ from_secret: apt_server
|
|
|
+ user: root
|
|
|
+ key:
|
|
|
+ from_secret: ssh_key
|
|
|
+ port: 22
|
|
|
+ command_timeout: 2m
|
|
|
+ script:
|
|
|
+ - freight-add ./hestia/*.deb apt/bionic apt/focal apt/strech apt/buster apt/bullseye
|
|
|
+ - freight-cache
|
|
|
+ - rm -fr ./hestia/
|
|
|
+
|
|
|
+trigger:
|
|
|
+ event: [ promote]
|
|
|
+
|
|
|
---
|
|
|
kind: signature
|
|
|
-hmac: e6d1a0d62ad4f5b0b8bed33c248e55e6de60ee9c1601ee5395fe5d5e72942e85
|
|
|
+hmac: 31806a1e5357c43d17d24ef797995fb9952a1d883ad282fd152d7d0378112213
|