Skip to content

Commit

Permalink
Fix workflow - 2nd attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
ndwinton committed Feb 20, 2023
1 parent f5b5727 commit 512c176
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup Environment
run: |
# GITHUB_ENV file is sourced by subsequent steps
Expand All @@ -22,10 +22,14 @@ jobs:
echo "ENV=prod" >> $GITHUB_ENV
fi
- name: Install JDK
run: apt update && apt install -y openjdk-17-jdk
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Build Image
run: |
./gradlew buildBootImage -Pversion=$VERSION
./gradlew buildBootImage -Pversion=$VERSION --no-daemon
- name: Tag Image
run: |
docker tag simple-web-app:$VERSION ghcr.io/vmware-tanzu-learning/simple-web-app:$VERSION
Expand Down

0 comments on commit 512c176

Please sign in to comment.