11
.github/dependabot.yml
vendored
Normal file
11
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
||||||
|
- package-ecosystem: "maven"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
39
.github/workflows/deploy-hetzner.yaml
vendored
Normal file
39
.github/workflows/deploy-hetzner.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
name: 'deploy to hetzner'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Cloning repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up JDK 21
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: '21'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- name: Build with Gradle (no Testing)
|
||||||
|
run: ./gradlew clean build -x test
|
||||||
|
|
||||||
|
- name: Push to dokku
|
||||||
|
timeout-minutes: 20
|
||||||
|
uses: dokku/github-action@v1
|
||||||
|
with:
|
||||||
|
branch: main
|
||||||
|
git_remote_url: ${{ secrets.HETZNER_GIT_URI }}
|
||||||
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
git_push_flags: --force
|
@@ -25,5 +25,7 @@ eureka:
|
|||||||
client:
|
client:
|
||||||
registerWithEureka: true
|
registerWithEureka: true
|
||||||
fetchRegistry: false
|
fetchRegistry: false
|
||||||
environment: production
|
|
||||||
datacenter: hel1-dc2
|
datacenter: hel1-dc2
|
||||||
|
environment: production
|
||||||
|
instance:
|
||||||
|
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
|
||||||
|
Reference in New Issue
Block a user