Skip to content

Commit 6b8a2e7

Browse files
authored
Merge branch 'master' into simplify
2 parents d4f9c3e + 389f5e4 commit 6b8a2e7

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# name: 🚀 Deploy Node.js App to Azure Web App
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - main # o tu rama principal
7+
# workflow_dispatch: # permite ejecutarlo manualmente también
8+
9+
# jobs:
10+
# build-and-deploy:
11+
# runs-on: ubuntu-latest
12+
13+
# env:
14+
# AZURE_WEBAPP_NAME: ${{ secrets.AZURE_WEBAPP_NAME }}
15+
# AZURE_WEBAPP_PACKAGE_PATH: '.' # carpeta raíz, ajústalo si está en otra
16+
17+
# steps:
18+
# - name: 📦 Checkout code
19+
# uses: actions/checkout@v3
20+
21+
# - name: 🟢 Set up Node.js
22+
# uses: actions/setup-node@v3
23+
# with:
24+
# node-version: '16' # Ajusta según tu versión en Azure
25+
26+
# - name: 📦 Install dependencies
27+
# run: npm install
28+
29+
# - name: 🧪 Optional: Run tests
30+
# run: echo "No tests defined"
31+
32+
# - name: 📤 Deploy to Azure Web App
33+
# uses: azure/webapps-deploy@v2
34+
# with:
35+
# app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
36+
# publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}
37+
# package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}

ansible/deploy-db-from-local.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
54
# [1/4] Define SSH paths and variables
65
DB_HOST=${DB_HOST:-$1}
76
DB_USER=${DB_USER:-$2}
@@ -46,5 +45,4 @@ ssh -i "$SSH_KEY_LOCAL" -p "$SSH_PORT" "$JUMP_USER@$JUMP_HOST" bash <<EOF
4645
--extra-vars "db_user=${DB_USER} db_pass=${DB_PASS} db_name=${DB_NAME} db_host=${DB_HOST} jump_user=${JUMP_USER}"
4746
EOF
4847

49-
5048
echo "[3/4] Playbook executed successfully!"

0 commit comments

Comments
 (0)