4 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
3 changed files with 6 additions and 8 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,7 +6,7 @@ cd /home/ubuntu/Bgreen/sgeUpdated
# -----------------------
# Harbor settings
# -----------------------
HARBOR_REGISTRY="10.150.1.166:8085"
HARBOR_REGISTRY="10.10.100.110:8085"
HARBOR_PROJECT="bgreen"
BACKEND_IMAGE_REPO="${HARBOR_REGISTRY}/${HARBOR_PROJECT}/bgreen-backend"

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>