Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
GoulvenF committed Nov 25, 2021
1 parent b1c4612 commit 08b14b3
Show file tree
Hide file tree
Showing 2,580 changed files with 107,822 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
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"
46 changes: 46 additions & 0 deletions .github/workflows/buildDeploy.yml
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"




25 changes: 25 additions & 0 deletions .github/workflows/publishInfra.yml
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}}






25 changes: 25 additions & 0 deletions .github/workflows/publishJars.yml
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}}






2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.settings/
/.project
Loading

0 comments on commit 08b14b3

Please sign in to comment.