Build as first stage
This commit is contained in:
parent
5e146e5af9
commit
974af94820
1 changed files with 20 additions and 1 deletions
21
.github/workflows/build_docker_images.yml
vendored
21
.github/workflows/build_docker_images.yml
vendored
|
@ -5,7 +5,26 @@ on:
|
|||
branches: master
|
||||
|
||||
jobs:
|
||||
main:
|
||||
build:
|
||||
runs-on: maven:latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-m2
|
||||
- name: Build with maven
|
||||
run: mvn package -DskipTests -Dbuild-version="${SEBSERVER_VERSION}"
|
||||
- run: mkdir staging && cp target/*.jar staging
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Package
|
||||
path: staging
|
||||
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
|
|
Loading…
Add table
Reference in a new issue