Merge pull request #478 from opexdev/hotfix-multiple-engines #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push images on main branch update | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
java: [ 17 ] | |
name: Build OPEX and run tests with java ${{ matrix.java }} | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v2 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-package: jdk | |
java-version: ${{ matrix.java }} | |
# cache: maven | |
- name: Build | |
run: mvn -B -T 1C clean install | |
- name: Run Tests | |
run: mvn -B -T 1C -Dskip.unit.tests=false surefire:test | |
- name: Build Docker images | |
env: | |
TAG: latest | |
run: docker compose -f docker-compose.build.yml build | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push images to GitHub Container Registry | |
env: | |
TAG: latest | |
run: docker compose -f docker-compose.build.yml push |