-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
116 changed files
with
4,850 additions
and
1,004 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: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Cache SonarCloud packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Cache Gradle packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- name: Build and analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew build sonarqube --info |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
#!/bin/bash | ||
#!/bin/zsh | ||
|
||
# Rebuild locally and replace the WAR | ||
echo "######## Rebuild & Replace WAR ########" | ||
echo "./gradlew clean build" | ||
./gradlew clean build | ||
echo "docker cp ./build/libs/cas.war cas:/cas-overlay" | ||
docker cp ./build/libs/cas.war cas:/cas-overlay | ||
echo "################# Done ################" | ||
|
||
# Sync configuration files | ||
echo "########## Sync Config Files ##########" | ||
echo "docker exec -d cas sh -c \"rm -rf /etc/cas/config/*\"" | ||
docker exec -d cas sh -c "rm -rf /etc/cas/config/*" | ||
echo "docker cp ./etc/cas/config/local/cas-local.properties cas:/etc/cas/config/cas.properties" | ||
docker cp ./etc/cas/config/local/cas-local.properties cas:/etc/cas/config/cas.properties | ||
echo "docker cp ./etc/cas/config/local/instn-authn-local.xsl cas:/etc/cas/config/instn-authn.xsl" | ||
docker cp ./etc/cas/config/local/instn-authn-local.xsl cas:/etc/cas/config/instn-authn.xsl | ||
echo "docker cp ./etc/cas/config/local/log4j2-local.xml cas:/etc/cas/config/log4j2.xml" | ||
docker cp ./etc/cas/config/local/log4j2-local.xml cas:/etc/cas/config/log4j2.xml | ||
echo "################# Done ################" | ||
|
||
# Sync JSON registered service files | ||
echo "####### Sync Service Definition #######" | ||
echo "docker exec -d cas sh -c \"rm -rf /etc/cas/services/*\"" | ||
docker exec -d cas sh -c "rm -rf /etc/cas/services/*" | ||
echo "docker cp ./etc/cas/services/local/. cas:/etc/cas/services" | ||
docker cp ./etc/cas/services/local/. cas:/etc/cas/services | ||
echo "################# Done ################" | ||
|
||
# Restart the container | ||
echo "########## Restart Container ##########" | ||
echo "docker restart cas" | ||
docker restart cas | ||
echo "docker logs -f --tail 0 cas" | ||
echo "####### OSF CAS LOG STARTS HERE #######" | ||
docker logs -f --tail 0 cas |
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.