From 3c471b5cd77a2ca87c127310db41b5aebb4e0218 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 18 Sep 2024 00:51:00 -0400 Subject: [PATCH] API deployment --- .gitea/workflows/deploy.yml | 31 ++++++++++++++++++++++++++++++ src/main/resources/application.yml | 5 +++++ 2 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..50f4559 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy API + +on: + push: + branches: ["master"] + paths-ignore: + - README.md + - LICENSE + +jobs: + deploy: + strategy: + matrix: + arch: ["ubuntu-latest"] + git-version: ["2.44.0"] + runs-on: ${{ matrix.arch }} + + # Steps to run + steps: + # Checkout the repo + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # Deploy to Dokku + - name: Deploy to Dokku + uses: dokku/github-action@master + with: + git_remote_url: "ssh://dokku@10.10.70.73:22/api" + ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a99e5b0..acca410 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,6 +8,11 @@ logging: file: path: "./logs" +# Flagsmith Configuration +flagsmith: + api-url: "https://flags.flagsmith.com/api/v1/" + api-key: "CHANGE_ME" + # Cloudflare Captcha Configuration captcha: secret: "CHANGE_ME"