Skip to content

Commit

Permalink
Try to fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimprinzbach committed Jun 23, 2024
1 parent 3a194cd commit 8c6495d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ jobs:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Configure Maven settings
run: |
mkdir -p ~/.m2
echo "<settings>
<servers>
<server>
<id>github</id>
<username>${{ secrets.GITHUB_USERNAME }}</username>
<password>${{ secrets.GITHUB_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
- uses: s4u/[email protected]
with:
servers: |
[{
"id": "github",
"username": "${{ secrets.USER_PACKAGE_READ }}",
"password": "${{ secrets.TOKEN_PACKAGE_READ }}"
}]
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Login to Docker Hub
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>annotationProcessor</scope>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 8c6495d

Please sign in to comment.