diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 0917179..a600946 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -8,8 +8,6 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: SSH to remote server uses: appleboy/ssh-action@v1.0.3 with: @@ -20,7 +18,6 @@ jobs: script: | cd /home/zouklambadabcn.com/public_html/ git pull - npm install npm run build pm2 restart ZLB - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index fc77297..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,54 +0,0 @@ -pipeline { - agent any - - environment { - REMOTE_HOST = '192.168.1.102' - REMOTE_DIR = '/home/zouklambadabcn.com/public_html' - PM2_APP = 'ZLB' - // Name of Jenkins Credentials (Username with private key) to SSH - SSH_CREDS = 'root_ssh' // <-- configure this in Jenkins Credentials - } - - options { - timestamps() - } - - stages { - stage('Deploy over SSH') { - steps { - script { - // Validate Jenkins has the required credential - withCredentials([sshUserPrivateKey(credentialsId: env.SSH_CREDS, keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')]) { - // Build the remote command to run - def remoteCmd = """ - set -e - cd "${env.REMOTE_DIR}" - git pull - npm install - npm run build - pm2 restart ${env.PM2_APP} - """.stripIndent() - - // SSH options for non-interactive, secure connection - def sshOpts = '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o BatchMode=yes' - - // Execute remote command via ssh - sh label: 'Run remote deployment', script: "ssh -i \"${SSH_KEY}\" ${sshOpts} \"${SSH_USER}@${REMOTE_HOST}\" 'bash -lc '\''" + remoteCmd.replace("'", "'\''") + "'\'' '" - } - } - } - } - } - - post { - success { - echo 'Deployment completed successfully.' - } - failure { - echo 'Deployment failed.' - } - always { - cleanWs(deleteDirs: true, notFailBuild: true) - } - } -} diff --git a/src/components/AboutSection.tsx b/src/components/AboutSection.tsx index 6274471..31d025f 100644 --- a/src/components/AboutSection.tsx +++ b/src/components/AboutSection.tsx @@ -30,7 +30,7 @@ const AboutSection = () => ( viewport={{ once: false, amount: 0.15 }} transition={{ duration: 0.6 }} > -
diff --git a/src/components/BookingSection.tsx b/src/components/BookingSection.tsx
index 28bed86..4f2e74a 100644
--- a/src/components/BookingSection.tsx
+++ b/src/components/BookingSection.tsx
@@ -161,7 +161,7 @@ const BookingSection = () => {
className="max-w-lg mx-auto text-center bg-card rounded-2xl p-10 shadow-elevated"
>
@@ -186,7 +186,7 @@ const BookingSection = () => { viewport={{ once: false, amount: 0.15 }} className="text-center mb-10" > -
diff --git a/src/components/FooterSection.tsx b/src/components/FooterSection.tsx index 268ddc2..405b34c 100644 --- a/src/components/FooterSection.tsx +++ b/src/components/FooterSection.tsx @@ -17,7 +17,7 @@ const FooterSection = () => (
@@ -26,7 +26,7 @@ const FooterSection = () => (
{/* Contacto */}