-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/upgradeMasterDependencies
- Loading branch information
Showing
66 changed files
with
3,390 additions
and
1,653 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,41 @@ | ||
#!/bin/bash | ||
|
||
# Installiere curl | ||
apt-get update -qq && apt-get install -y -qq curl > /dev/null | ||
|
||
GITHUB_ORG="mediathekview" | ||
GITHUB_REPO="MServer" | ||
GITHUB_SHA="${CI_COMMIT_SHA}" | ||
cat << EOF > headers.curl | ||
Accept: application/vnd.github+json | ||
Authorization: token ${GITHUB_API_TOKEN} | ||
EOF | ||
cat << EOF > success.json | ||
{ | ||
"state" : "success", | ||
"target_url" : "${CI_PIPELINE_URL}", | ||
"description" : "CI runs at ElaonDE systems successful" | ||
} | ||
EOF | ||
cat << EOF > failure.json | ||
{ | ||
"state" : "failure", | ||
"target_url" : "${CI_PIPELINE_URL}", | ||
"description" : "CI runs at ElaonDE systems failed" | ||
} | ||
EOF | ||
cat << EOF > pending.json | ||
{ | ||
"state" : "pending", | ||
"target_url" : "${CI_PIPELINE_URL}", | ||
"description" : "CI runs at ElaonDE systems pending" | ||
} | ||
EOF | ||
GITHUB_API_URL="https://github.com/gitapi/repos/${GITHUB_ORG}/${GITHUB_REPO}/statuses/${GITHUB_SHA}" | ||
if [ "$1" == "success" ]; then | ||
curl -s -X POST -H @headers.curl "${GITHUB_API_URL}" -d @success.json | ||
elif [ "$1" == "failure" ]; then | ||
curl -s -X POST -H @headers.curl "${GITHUB_API_URL}" -d @failure.json | ||
elif [ "$1" == "pending" ]; then | ||
curl -s -X POST -H @headers.curl "${GITHUB_API_URL}" -d @pending.json | ||
fi |
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,68 @@ | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
#image: maven:3.9-eclipse-temurin-8 | ||
image: bellsoft/liberica-openjdk-debian:8u | ||
|
||
cache: | ||
paths: | ||
- ./.m2 | ||
|
||
|
||
#default: | ||
# before_script: | ||
|
||
|
||
stages: | ||
- .prenotify | ||
# - test | ||
- release | ||
- .postnotify | ||
|
||
notify-github-pending: | ||
stage: .prenotify | ||
when: always | ||
script: | ||
- .ci/notify_github.sh pending | ||
|
||
#test: | ||
# stage: test | ||
# script: | ||
# - mvn -B package | ||
# rules: | ||
# - if: '$CI_COMMIT_BRANCH == "develop"' | ||
|
||
Build and Deploy: | ||
stage: release | ||
script: | ||
# - apt-get update -qq | ||
# - apt-get install -y -qq ssh lib32ncurses6 lib32z1 wget tar file gnupg2 git-lfs > /dev/null | ||
# - source /private/MServerENVS | ||
- whoami | ||
# - mkdir ~/.ssh | ||
# - ssh-keyscan -p 60002 dw2.mvorg.de >> ~/.ssh/known_hosts | ||
# - ssh-keyscan -p 60002 148.251.176.136 >> ~/.ssh/known_hosts | ||
# - chmod 644 ~/.ssh/known_hosts | ||
- java -version | ||
# - mvn -v | ||
# - mvn clean | ||
# - mvn -B package | ||
- ./gradlew build | ||
- ls -l | ||
tags: | ||
- mvweb1 | ||
# rules: | ||
# - if: $CI_COMMIT_TAG | ||
|
||
|
||
notify-github-success: | ||
stage: .postnotify | ||
when: on_success | ||
script: | ||
- .ci/notify_github.sh success | ||
|
||
notify-github-failure: | ||
stage: .postnotify | ||
when: on_failure | ||
script: | ||
- .ci/notify_github.sh failure |
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
Oops, something went wrong.