Migrate from GitHub to Gitea with CI/CD
Some checks failed
Deploy / deploy (push) Failing after 6m11s
Some checks failed
Deploy / deploy (push) Failing after 6m11s
- Add Gitea Actions workflow for automated frontend and API deployment - Update all raw download URLs from GitHub to Gitea - Remove deprecated Amplify config and GitHub-specific Terraform variables - Clean up commented-out Amplify resources from Terraform - Update documentation to reflect new repository and CI/CD setup
This commit is contained in:
@@ -13,8 +13,8 @@ cd /home/ubuntu/filamenteka-api
|
||||
# Backup current server.js
|
||||
cp server.js server.js.backup
|
||||
|
||||
# Download the updated server.js from GitHub
|
||||
curl -o server.js https://raw.githubusercontent.com/daxdax89/Filamenteka/sale/api/server.js
|
||||
# Download the updated server.js from Gitea
|
||||
curl -o server.js https://git.demirix.dev/dax/Filamenteka/raw/branch/main/api/server.js
|
||||
|
||||
# Restart the service
|
||||
sudo systemctl restart node-api
|
||||
@@ -30,7 +30,7 @@ aws ssm send-command \
|
||||
--parameters "commands=[
|
||||
'cd /home/ubuntu/filamenteka-api',
|
||||
'cp server.js server.js.backup',
|
||||
'curl -o server.js https://raw.githubusercontent.com/daxdax89/Filamenteka/sale/api/server.js',
|
||||
'curl -o server.js https://git.demirix.dev/dax/Filamenteka/raw/branch/main/api/server.js',
|
||||
'sudo systemctl restart node-api',
|
||||
'sudo systemctl status node-api'
|
||||
]" \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to update API server via GitHub
|
||||
# Script to update API server via Gitea
|
||||
# Since we can't SSH directly, we'll use the API server to pull latest code
|
||||
|
||||
echo "🚀 Updating API server with latest code..."
|
||||
|
||||
Reference in New Issue
Block a user