forked from Onlineberatung/onlineBeratung-messageService
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9083810
Showing
110 changed files
with
18,733 additions
and
0 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,36 @@ | ||
name: Feature Branch | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
- 'develop' | ||
|
||
jobs: | ||
test: | ||
name: Build and run unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup JVM | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8.0.181 | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- name: Caching maven dependencies | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-maven-dependencies | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
|
||
- name: Maven Package | ||
run: mvn -B -Pprod clean package -DskipTests | ||
- name: Maven Verify | ||
run: mvn -B -Pprod clean verify |
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,29 @@ | ||
name: Release action | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Release | ||
if: "!contains(github.event.head_commit.author, '[email protected]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo ::set-env name=BRANCH::$(echo -n "${GITHUB_REF#refs/heads/}") | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- name: Bump version | ||
if: startsWith(env.BRANCH,'release') == true | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npm run release | ||
- name: Push changes | ||
if: startsWith(env.BRANCH,'release') == true | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{env.BRANCH}} | ||
force: true | ||
tags: true |
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,28 @@ | ||
/target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
/node_modules | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/build/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
wrapper | ||
log |
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,25 @@ | ||
# Swagger Codegen Ignore | ||
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md | ||
|
||
pom.xml |
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,6 @@ | ||
FROM openjdk:8-jdk-alpine | ||
VOLUME ["/tmp","/log"] | ||
EXPOSE 8080 | ||
ARG JAR_FILE | ||
COPY target/MessageService.jar app.jar | ||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] |
662 changes: 662 additions & 0 deletions
662
Dokumentation/Auslesen-Team-Beratung-Narichten-Ablaufdiagramm.graphml
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
pipeline { | ||
agent any | ||
environment { | ||
ARTIFACT_TAG = "${BRANCH_NAME}-${BUILD_ID}" | ||
} | ||
stages { | ||
stage('Build') { | ||
agent { | ||
docker { | ||
image 'maven:3.5.4-jdk-8-alpine' | ||
args '-v /root/.m2:/root/.m2' | ||
} | ||
} | ||
steps { | ||
echo 'Build using goals: clean and package' | ||
sh 'mvn -B -Pprod clean package' | ||
stash includes: 'target/*.jar', name: 'targetfiles' | ||
} | ||
} | ||
stage('Docker build') { | ||
steps { | ||
echo 'Creating Docker Container..' | ||
unstash 'targetfiles' | ||
sh 'docker build --no-cache -t ${DOCKER_REGISTRY}/${ARTIFACT_GROUP}/${ARTIFACT_NAME_MESSAGESERVICE} .' | ||
} | ||
} | ||
stage('Docker push') { | ||
agent any | ||
steps { | ||
echo 'Pushing Docker Container to repository..' | ||
script { | ||
docker.withRegistry(DOCKER_REGISTRY_URL, DOCKER_REGISTRY_CREDENTIALS_ID) { | ||
docker.image("${DOCKER_REGISTRY}/${ARTIFACT_GROUP}/${ARTIFACT_NAME_MESSAGESERVICE}").push('${ARTIFACT_TAG}') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.