fix: use HARBOR_USERNAME secret in CI, add idempotent Harbor API setup to deploy script

- GitHub Actions: login with secrets.HARBOR_USERNAME + HARBOR_PASSWORD
- deploy.sh step 7: creates stonks-oracle project, robot account, tag retention
- All API calls are idempotent (safe to re-run)
This commit is contained in:
Celes Renata
2026-04-19 07:45:58 +00:00
parent 5be3ce2db9
commit 911e42996b
2 changed files with 194 additions and 3 deletions
+3 -3
View File
@@ -87,7 +87,7 @@ jobs:
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: admin
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Set up Docker Buildx
@@ -121,7 +121,7 @@ jobs:
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: admin
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Set up Docker Buildx
@@ -153,7 +153,7 @@ jobs:
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: admin
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Set up Docker Buildx