Skip to content

Commit

Permalink
Merge pull request #4 from ruivieira/fix-quay
Browse files Browse the repository at this point in the history
fix: Add missing Maven from image builder
  • Loading branch information
ruivieira authored Apr 24, 2024
2 parents 1e778d2 + 983bcb4 commit d6c30be
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,28 @@ jobs:
echo "TAG=latest" >> $GITHUB_ENV
fi
- name: Set up JDK + Maven version
uses: s4u/setup-maven-action@v1.4.0
with:
java-version: '17'
maven-version: '3.8.6'

# Checkout trustyai-core
- name: Checkout external repository
uses: actions/checkout@v3
with:
repository: trustyai-explainability/trustyai-explainability
path: ./trustyai-explainability
ref: 'main'

# Maven build trustyai-core
- name: Maven Clean Install on External Repository
run: |
cd trustyai-explainability
mvn clean install -DskipTests
- name: Pull prerequisite images
run: |
docker pull $(cat Dockerfile | grep -o -P '(?<=FROM ).*(?= AS build)')
docker pull $(cat Dockerfile | grep -o -P '(?<=FROM ).*(?= AS runtime)')
mvn clean install -Pservice-minimal -DskipTests
- name: Build Docker image
run: docker build -t ${{ vars.QUAY_RELEASE_REPO }}:$TAG .
run: docker build -f src/main/docker/Dockerfile.jvm -t ${{ vars.QUAY_RELEASE_REPO }}:$TAG .

- name: Log in to Quay
run: docker login -u ${{ secrets.QUAY_ROBOT_USERNAME }} -p ${{ secrets.QUAY_ROBOT_SECRET }} quay.io
Expand Down

0 comments on commit d6c30be

Please sign in to comment.