mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
This commit is contained in:
parent
dfec0b0a03
commit
6b25c5a7d2
28
.drone.yml
28
.drone.yml
@ -2,20 +2,20 @@ kind: pipeline
|
|||||||
name: Create release
|
name: Create release
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to hosts
|
- name: create
|
||||||
image: appleboy/drone-ssh:1.6.3-linux-amd64
|
image: docker.panel2.viceunderdogs.com/buildenv:debian-latest
|
||||||
settings:
|
environment:
|
||||||
host:
|
GIT_TOKEN:
|
||||||
- fatcow.thijn.ovh
|
from_secret: GITEA_KEY
|
||||||
- obesepig.thijn.ovh
|
commands:
|
||||||
username: thijn
|
- wget 'https://thijn.ovh/escape-newline.sh' -O /escape-newline.sh && chmod +x /escape-newline.sh
|
||||||
password:
|
- echo RELEASE_TAG=$(git rev-parse --short HEAD) > /repo/.release.env
|
||||||
from_secret: ssh_password
|
- . /repo/.release.env
|
||||||
port: 22
|
- MESSAGE=$(echo $DRONE_COMMIT_MESSAGE | /escape-newline.sh)
|
||||||
script: >
|
- >
|
||||||
cd /tmp &&
|
echo RELEASE_ID=$(curl -s 'https://git.thijn.ovh/api/v1/repos/Thijn/SqMod/releases?token='"$GIT_TOKEN"'' -H 'accept: application/json' -H 'Content-Type: application/json' --data-binary '{"tag_name": "'"$RELEASE_TAG"'","body": "'"$MESSAGE"'","name": "Autobuild"}' | jq '.id') >> /repo/.release.env
|
||||||
git pull &&
|
. /repo/.release.env
|
||||||
composer install --no-progress
|
echo "Created release $RELEASE_ID"
|
||||||
|
|
||||||
node:
|
node:
|
||||||
name: prodesk
|
name: prodesk
|
||||||
|
Loading…
Reference in New Issue
Block a user