Added build on windows-2019.
-name: Publish Docker image
+name: Build, test, and publish slim FASTEN server image
on:
push:
- # Publish `develop` as Docker `latest` image.
branches:
- develop
- # Run tests for any PRs.
pull_request:
branches:
- develop
env:
- # TODO: Change variable to your image's name.
IMAGE_NAME: fasten.server.develop.slim
jobs:
+ windows-build:
+ runs-on: windows-2019
+ if: github.event_name == 'push'
- # Push image to GitHub Packages.
- # See also https://docs.docker.com/docker-hub/builds/
- push:
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v2
+ - name: Setup JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ - name: Build jar
+ run: mvn clean install
- runs-on: ubuntu-18.04
+ linux-build-and-push:
+ runs-on: ubuntu-20.04
if: github.event_name == 'push'
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup JDK 11
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
- java-version: 1.11
+ java-version: '11'
- name: Build jar
run: mvn clean install
- name: Build image
