Skip to content

updated runs-on: DevVer -> Ubuntu, DevInt -> Windows #108

updated runs-on: DevVer -> Ubuntu, DevInt -> Windows

updated runs-on: DevVer -> Ubuntu, DevInt -> Windows #108

name: Build and Push Docker image
env:
ACTIONS_STEP_DEBUG: false
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
DevVer:
runs-on: [self-hosted, OPENSUSE]
strategy:
matrix:
browser: [ chrome ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: Build DevVer with Maven
run: mvn -B package --file pom.xml -Denvironment=DevVer -Dbrowser=chrome
- name: remove remove previous container instance
run: docker rm -f DevVer
- name: Build Docker image
run: docker build . --file Dockerfile_DevVer --tag cicd_project_image:DevVer
- name: run docker image
run: docker run --name DevVer cicd_project_image:DevVer
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test results
path: target/surefire-reports/
DevInt:
runs-on: [self-hosted, OPENSUSE]
needs: DevVer
strategy:
matrix:
browser: [chrome,firefox]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
cache: maven
- name: Build & test DevInt with Maven
run: mvn -B package --file pom.xml -Denvironment=DevInt -Dbrowser=${{ matrix.browser }}
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test results ${{ matrix.browser }} - ${{ github.run_id }}
path: target/surefire-reports/
Production:
runs-on: [self-hosted]
needs: DevInt
steps:
- uses: actions/checkout@v4
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
java-version: '19'
distribution: 'temurin'
cache: maven