8 Commits

Author SHA1 Message Date
b64abe3a3a harbor test v2 2026-03-10 12:11:40 +03:00
abdelbari
54dcb584d6 test: trigger harbor push for backend
Some checks failed
sgeUpdated CI/CD / deploy (pull_request) Has been cancelled
2026-03-10 08:30:33 +00:00
b6a4f0e303 Merge pull request 'fix: use internal IP for Harbor and add network-resilient fetch' (#16) from fix/harbor-connection-port into main
Reviewed-on: #16
2026-03-10 11:25:25 +03:00
abdelbari
e0c8286475 fix: use internal IP for Harbor and add network-resilient fetch
All checks were successful
sgeUpdated CI/CD / deploy (pull_request) Successful in 7s
2026-03-10 08:19:13 +00:00
1ebf2f2f9d Merge pull request 'fix/harbor-connection-port' (#15) from fix/harbor-connection-port into main
Reviewed-on: #15
2026-03-10 10:42:58 +03:00
abdelbari
4ddffb6fff chore: update harbor registry to 10.150.1.166:8085
Some checks failed
sgeUpdated CI/CD / deploy (pull_request) Failing after 5m7s
2026-03-10 07:38:21 +00:00
abdelbari
59b37a64f5 Update Harbor registry IP and port for the pipeline 2026-03-10 07:29:31 +00:00
a0041afce9 Merge pull request 'harbor test v' (#14) from testv into main
Reviewed-on: #14
2026-03-09 14:07:36 +03:00
3 changed files with 7 additions and 9 deletions

View File

@@ -22,8 +22,6 @@ jobs:
- name: Run deploy script on server
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
echo "✅ PR merged into main — running deploy script.."
cd /home/ubuntu/Bgreen/sgeUpdated
./deploy.sh
EOF
# We add -tt to force a pseudo-terminal (fixes that stdin error)
# We call bash -lc to force a Login Shell, which loads your credentials
ssh -tt ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} "bash -lc 'cd /home/ubuntu/Bgreen/sgeUpdated && ./deploy.sh'"

View File

@@ -6,13 +6,13 @@ cd /home/ubuntu/Bgreen/sgeUpdated
# -----------------------
# Harbor settings
# -----------------------
HARBOR_REGISTRY="10.150.1.166"
HARBOR_REGISTRY="10.10.100.110:8085"
HARBOR_PROJECT="bgreen"
BACKEND_IMAGE_REPO="${HARBOR_REGISTRY}/${HARBOR_PROJECT}/bgreen-backend"
FRONTEND_IMAGE_REPO="${HARBOR_REGISTRY}/${HARBOR_PROJECT}/bgreen-frontend"
# Tag images with git commit (better than latest; enables rollback)
# Tag images within git commit (better than latest; enables rollback)
VERSION="$(git rev-parse --short HEAD)"
echo "📦 Fetching latest changes from origin/main..."

View File

@@ -11,7 +11,7 @@
</parent>
<groupId>com.sgs</groupId>
<artifactId>sgs</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.3-SNAPSHOT</version>
<name>sgs</name>
<description>SGS project for Spring Boot</description>
<properties>
@@ -130,4 +130,4 @@
<finalName>sgs-backend</finalName>
</build>
</project>
</project>