forked from IQSS/dataverse
-
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.
Merge branch 'develop' into IQSS/3818_delete_thumbnail_tmp_files
- Loading branch information
Showing
1,131 changed files
with
34,449 additions
and
24,231 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
APP_IMAGE=gdcc/dataverse:unstable | ||
POSTGRES_VERSION=13 | ||
DATAVERSE_DB_USER=dataverse | ||
SOLR_VERSION=8.11.1 | ||
SOLR_VERSION=9.3.0 |
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,4 @@ | ||
# https://www.git-scm.com/docs/gitattributes | ||
|
||
# This set mandatory LF line endings for .sh files preventing from windows users to having to change the value of their git config --global core.autocrlf to 'false' or 'input' | ||
*.sh text eol=lf |
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
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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: 'Deploy to Beta Testing' | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Enable API Session Auth feature flag | ||
working-directory: src/main/resources/META-INF | ||
run: echo -e "dataverse.feature.api-session-auth=true" >> microprofile-config.properties | ||
|
||
- name: Set build number | ||
run: scripts/installer/custom-build-number | ||
|
||
- name: Build application war | ||
run: mvn package | ||
|
||
- name: Get war file name | ||
working-directory: target | ||
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV | ||
|
||
- name: Upload war artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: built-app | ||
path: ./target/${{ env.war_file }} | ||
|
||
deploy-to-payara: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download war artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: built-app | ||
path: ./ | ||
|
||
- name: Get war file name | ||
run: echo "war_file=$(ls *.war | head -1)">> $GITHUB_ENV | ||
|
||
- name: Copy war file to remote instance | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }} | ||
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }} | ||
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }} | ||
source: './${{ env.war_file }}' | ||
target: '/home/${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }}' | ||
overwrite: true | ||
|
||
- name: Execute payara war deployment remotely | ||
uses: appleboy/[email protected] | ||
env: | ||
INPUT_WAR_FILE: ${{ env.war_file }} | ||
with: | ||
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }} | ||
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }} | ||
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }} | ||
envs: INPUT_WAR_FILE | ||
script: | | ||
APPLICATION_NAME=dataverse-backend | ||
ASADMIN='/usr/local/payara6/bin/asadmin --user admin' | ||
$ASADMIN undeploy $APPLICATION_NAME | ||
$ASADMIN stop-domain | ||
rm -rf /usr/local/payara6/glassfish/domains/domain1/generated | ||
rm -rf /usr/local/payara6/glassfish/domains/domain1/osgi-cache | ||
$ASADMIN start-domain | ||
$ASADMIN deploy --name $APPLICATION_NAME $INPUT_WAR_FILE | ||
$ASADMIN stop-domain | ||
$ASADMIN start-domain |
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.