Skip to content

Commit 07e6462

Browse files
committed
fix: Pass GHCR credentials to Jib via system properties
Jib doesn't automatically use DOCKER_USERNAME/DOCKER_PASSWORD environment variables. Pass credentials directly via -Djib.to.auth.username and -Djib.to.auth.password system properties to fix Docker push failures.
1 parent 559d8c9 commit 07e6462

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/server-pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
working-directory: server
4747
env:
4848
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
49-
DOCKER_USERNAME: ${{ github.actor }}
50-
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
5149
run: |
5250
mvn --batch-mode deploy -PdockerPreRelease -Dmaven.deploy.skip \
51+
-Djib.to.auth.username=${{ github.actor }} \
52+
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} \
5353
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5454
-Dsonar.projectKey=aehrc_pathling -Dsonar.organization=aehrc \
5555
-Dsonar.host.url=https://sonarcloud.io \

.github/workflows/server-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
working-directory: server
4646
env:
4747
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48-
DOCKER_USERNAME: ${{ github.actor }}
49-
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
5048
run: |
5149
mvn --batch-mode deploy -Pdocker -Dmaven.deploy.skip \
50+
-Djib.to.auth.username=${{ github.actor }} \
51+
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} \
5252
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
5353
-Dsonar.projectKey=aehrc_pathling -Dsonar.organization=aehrc \
5454
-Dsonar.host.url=https://sonarcloud.io \

0 commit comments

Comments
 (0)