From 2575dcab723b79f00a2846ac353f8c26e9b05fb8 Mon Sep 17 00:00:00 2001 From: Elwizzy12 Date: Tue, 19 Nov 2024 12:14:13 +0100 Subject: [PATCH] modified worflow to test image is pushed to ghcr --- .github/workflows/docker-build.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index bd60b96..27bfff5 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -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 " + + + github-webank + ${{ github.actor }} + ${{ secrets.WEBANK_ACCESS_TOKEN }} + + + " > ~/.m2/settings.xml - name: Build JAR run: mvn -f online-banking-app/pom.xml clean package -DskipTests