Skip to content

Commit

Permalink
feat: Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
daho4b committed Jun 18, 2020
0 parents commit 9083810
Show file tree
Hide file tree
Showing 110 changed files with 18,733 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/feature-branch.yml
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
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
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
28 changes: 28 additions & 0 deletions .gitignore
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
25 changes: 25 additions & 0 deletions .swagger-codegen-ignore
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
6 changes: 6 additions & 0 deletions Dockerfile
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 Dokumentation/Auslesen-Team-Beratung-Narichten-Ablaufdiagramm.graphml

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5,110 changes: 5,110 additions & 0 deletions Dokumentation/MessageService-Architektur.graphml

Large diffs are not rendered by default.

Binary file added Dokumentation/MessageService-Architektur.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions Jenkinsfile
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}')
}
}
}
}
}
}
Loading

0 comments on commit 9083810

Please sign in to comment.