Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Commit

Permalink
fix: the ACR deploy failw due to missing credential
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Feb 1, 2021
1 parent 730b715 commit 48f80be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -27,6 +27,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Prepare to release
run: |
curl -L https://aka.ms/acr/installaad/bash | /bin/bash
az acr login -n gradleboilerplate -u gradleboilerplate -p ${{ secrets.ACR_PASSWORD }}
- name: Upload Test Report
uses: actions/upload-artifact@v2
if: always()
Expand All @@ -39,5 +43,3 @@ jobs:
npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACR_USERNAME: gradleboilerplate
ACR_PASSWORD: ${{ secrets.ACR_PASSWORD }}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -53,7 +53,7 @@
"@semantic-release/exec",
{
"verifyConditionsCmd": "./gradlew jibDockerBuild",
"publishCmd": "./gradlew jib -Djib.to.auth.username=$GITHUB_ACTOR -Djib.to.auth.password=$GITHUB_TOKEN"
"publishCmd": "./gradlew jib"
}
]
]
Expand Down

0 comments on commit 48f80be

Please sign in to comment.