-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add a simple ci pipeline for drone.io * use JKD11 as default like jakarta too
- Loading branch information
1 parent
fba83f5
commit 5dce250
Showing
7 changed files
with
105 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
kind: pipeline | ||
name: default | ||
|
||
steps: | ||
|
||
# build the project with gradle | ||
- name: gradle-library-build | ||
image: openjdk:11-jdk | ||
commands: | ||
- ./gradlew --no-daemon -b build.gradle clean buildResources :javaBuild:defaultJar :javaBuild:buildJava11Jar :javaBuild:buildJava17Jar | ||
- ls -lisa ./javaBuild/build/libs/ | ||
volumes: | ||
- name: maven-cache | ||
path: /root/.m2 | ||
|
||
# build the project with maven | ||
- name: maven-library-package | ||
image: maven:3.6-jdk-11 | ||
commands: | ||
- mvn clean package #-P MavenCentral | ||
- cd ./target/ | ||
- ls -lisa | ||
volumes: | ||
- name: maven-cache | ||
path: /root/.m2 | ||
|
||
# to refresh the showcase, deploy a snapshot to 'GitHub Packages' | ||
- name: maven-library-deploy | ||
when: | ||
repo: | ||
- geopossachs/BootsFaces-OSP | ||
image: maven:3.6-jdk-11 | ||
commands: | ||
- mvn -s ./.drone_maven_settings.xml clean deploy -P geopossachs | ||
environment: | ||
GITHUB_USERNAME: geopossachs | ||
GITHUB_ACCESS_TOKEN: | ||
from_secret: githab_access_token | ||
volumes: | ||
- name: maven-cache | ||
path: /root/.m2 | ||
|
||
|
||
volumes: | ||
- name: maven-cache | ||
host: | ||
path: /temp/drone/m2cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
|
||
<servers> | ||
<server> | ||
<id>github</id> | ||
<username>${env.GITHUB_USERNAME}</username> | ||
<password>${env.GITHUB_ACCESS_TOKEN}</password> | ||
</server> | ||
</servers> | ||
|
||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters