Skip to content

Commit

Permalink
modified worflow to test image is pushed to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Elwizzy12 committed Nov 19, 2024
1 parent 768ea8e commit 2575dca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,25 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Set up Maven settings.xml
run: |
mkdir -p ~/.m2
echo "<settings>
<servers>
<server>
<id>github-webank</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.WEBANK_ACCESS_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
- name: Build JAR
run: mvn -f online-banking-app/pom.xml clean package -DskipTests
Expand Down

0 comments on commit 2575dca

Please sign in to comment.