Skip to content

Commit

Permalink
add maven build to gh workflow for user-service
Browse files Browse the repository at this point in the history
  • Loading branch information
thegovind committed Jun 29, 2023
1 parent abc58aa commit f41b3b0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/user-service-container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
image: ${{ steps.main.outputs.image }}
repository: ${{ steps.main.outputs.repository }}
steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Set short_sha
id: vars
run: echo "short_sha=$(git rev-parse --short HEAD)" >> ${GITHUB_ENV}

- name: Login to GHCR
uses: docker/login-action@v1
with:
Expand All @@ -39,6 +36,18 @@ jobs:
- name: downcase env.REPOSITORY
run: |
echo "REPOSITORY=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.2
- name: Build with Maven
run: mvn -B package --file ./java/user-service/pom.xml -DskipTests
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit f41b3b0

Please sign in to comment.