mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-11-29 14:06:29 +01:00
Update .gitlab-ci.yml
This commit is contained in:
parent
923589b94f
commit
031f79a4be
@ -1,11 +1,21 @@
|
||||
stages:
|
||||
- build
|
||||
- build
|
||||
|
||||
variables:
|
||||
name: "EpicHeads"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.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: "EpicHeads"
|
||||
name: $name-$version
|
||||
paths:
|
||||
- "/builds/$CI_PROJECT_PATH/*.jar"
|
||||
- "$path/*.jar"
|
||||
|
Loading…
Reference in New Issue
Block a user