diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6fbe648..1d3168b7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,5 @@ stages: - build - - deploy build_sshpiper: stage: build @@ -63,64 +62,3 @@ build_sshpiper: paths: - sshpiperd expire_in: 1 week - -deploy_sshpiper: - stage: deploy - tags: - - cammy.foxhop.net - only: - - main - dependencies: - - build_sshpiper - before_script: - - which systemctl || (echo "systemctl not found!" && exit 1) - script: - - echo "Deploying sshpiper to cammy..." - - # Stop existing service - - sudo /bin/systemctl stop sshpiper.service || echo "Service was not running" - - # Deploy binary - - sudo /bin/cp $CI_PROJECT_DIR/sshpiperd /opt/unsandbox/sshpiper/sshpiperd - - sudo /bin/chmod +x /opt/unsandbox/sshpiper/sshpiperd - - # Create systemd service if it doesn't exist - - | - if [ ! -f /etc/systemd/system/sshpiper.service ]; then - echo "Creating systemd service for sshpiper..." - sudo tee /etc/systemd/system/sshpiper.service > /dev/null <