Skip to content

disable automatic performance test #52

disable automatic performance test

disable automatic performance test #52

Workflow file for this run

name: deploy
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Extract project version
run: echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B package -DskipITs
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push (release)
if: ${{ !endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
uses: docker/build-push-action@v2
with:
push: true
tags: ehrbase/webtester:latest,ehrbase/webtester:${{ env.PROJECT_VERSION }}
- name: Build and push (snapshot)
if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ehrbase/webtester:next