Skip to content
Snippets Groups Projects
Verified Commit 9aa2391e authored by KitsuneAlex's avatar KitsuneAlex
Browse files

Add deployment step to CI configuration

parent fd852915
Branches
Tags 1.0.3
No related merge requests found
Pipeline #2177 failed
......@@ -11,6 +11,7 @@ stages:
- security
- publish
- release
- deploy
variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/build/${CI_COMMIT_TAG}"
......@@ -168,3 +169,23 @@ release:
url: ${PACKAGE_REGISTRY_URL}/rad-windows-x64.exe
tags:
- linux
# ------------------------------ Deploy
deploy:
stage: deploy
rules:
- *if-release
dependencies:
- release
script:
- echo "Stopping RAD service"
- systemctl stop rad-service.service
- rm -f /home/tools/rad/rad.kexe
- echo "Download RAD service binary"
- wget ${PACKAGE_REGISTRY_URL}/rad-linux-x64 -O /home/tools/rad/rad.kexe
- echo "Starting RAD service"
- systemctl start rad-service.service
- echo "RAD service started (code $?)"
tags:
- linux
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment