mirror of
https://github.com/songoda/EpicVouchers.git
synced 2025-03-12 14:39:16 +01:00
Update .gitlab-ci.yml
This commit is contained in:
parent
826a5f72c5
commit
f48f18c5c9
@ -1,11 +1,21 @@
|
||||
stages:
|
||||
- build
|
||||
- build
|
||||
|
||||
variables:
|
||||
name: "EpicVouchers"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.0.3"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
image: maven:3.3.9-jdk-8
|
||||
script: "mvn clean package"
|
||||
image: maven:3.5.3-jdk-8
|
||||
script:
|
||||
- find $path/ -type f -name "*.xml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
||||
- find $path/ -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
||||
- mvn clean package
|
||||
- find $path/ -depth -path '*original*' -delete
|
||||
- mv $path/target/*.jar $path/
|
||||
artifacts:
|
||||
name: "EpicVouchers"
|
||||
name: $name-$version
|
||||
paths:
|
||||
- "/builds/$CI_PROJECT_PATH/*.jar"
|
||||
- "$path/*.jar"
|
||||
|
Loading…
Reference in New Issue
Block a user