forked from open4good/open4goods
-
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
Showing
2,580 changed files
with
107,822 additions
and
2 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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "maven" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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,46 @@ | ||
# This workflow will build and push a latest artefacts to the server | ||
|
||
on: push | ||
|
||
name: Build and deploy artefacts | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots install | ||
|
||
- name: Deploy API to server | ||
uses: easingthemes/ssh-deploy@main | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ARGS: "-rltgoDzvO --delete" | ||
SOURCE: "/api/target/api-0.0.1-SNAPSHOT.jar" | ||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.REMOTE_USER }} | ||
TARGET: "/opt/open4goods/bin/latest/api-latest.jar" | ||
|
||
- name: Deploy UI to server | ||
uses: easingthemes/ssh-deploy@main | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ARGS: "-rltgoDzvO --delete" | ||
SOURCE: "/ui/target/ui-0.0.1-SNAPSHOT.jar" | ||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.REMOTE_USER }} | ||
TARGET: "/opt/open4goods/bin/latest/ui-latest.jar" | ||
|
||
|
||
|
||
|
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 @@ | ||
# This workflow will trigger the remote ssh script to | ||
# restart infrastructure with the latest artefacts version | ||
on: workflow_dispatch | ||
|
||
name: Publish latest infrastructure | ||
|
||
jobs: | ||
deploy: | ||
name: publish-infra | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Publish via ssh | ||
uses: garygrossgarten/github-action-ssh@release | ||
with: | ||
command: sh /opt/open4goods/bin/publish-infra.sh | ||
host: ${{ secrets.REMOTE_HOST }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
privateKey: ${{ secrets.SSH_PRIVATE_KEY}} | ||
|
||
|
||
|
||
|
||
|
||
|
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 @@ | ||
# This workflow will trigger the remote ssh script to | ||
# restart application with the latest artefacts version | ||
on: workflow_dispatch | ||
|
||
name: Publish latest apps | ||
|
||
jobs: | ||
deploy: | ||
name: publish-jars | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Publish via ssh | ||
uses: garygrossgarten/github-action-ssh@release | ||
with: | ||
command: sh /opt/open4goods/bin/publish-jars.sh | ||
host: ${{ secrets.REMOTE_HOST }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
privateKey: ${{ secrets.SSH_PRIVATE_KEY}} | ||
|
||
|
||
|
||
|
||
|
||
|
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,2 @@ | ||
/.settings/ | ||
/.project |
Oops, something went wrong.