1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Thijn 2023-03-15 23:22:31 +01:00 committed by GitHub
parent dfec0b0a03
commit 6b25c5a7d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,20 +2,20 @@ kind: pipeline
name: Create release
steps:
- name: Deploy to hosts
image: appleboy/drone-ssh:1.6.3-linux-amd64
settings:
host:
- fatcow.thijn.ovh
- obesepig.thijn.ovh
username: thijn
password:
from_secret: ssh_password
port: 22
script: >
cd /tmp &&
git pull &&
composer install --no-progress
- name: create
image: docker.panel2.viceunderdogs.com/buildenv:debian-latest
environment:
GIT_TOKEN:
from_secret: GITEA_KEY
commands:
- wget 'https://thijn.ovh/escape-newline.sh' -O /escape-newline.sh && chmod +x /escape-newline.sh
- echo RELEASE_TAG=$(git rev-parse --short HEAD) > /repo/.release.env
- . /repo/.release.env
- MESSAGE=$(echo $DRONE_COMMIT_MESSAGE | /escape-newline.sh)
- >
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
. /repo/.release.env
echo "Created release $RELEASE_ID"
node:
name: prodesk