add readme and GitHub action files

This commit is contained in:
Justin Ellingwood
2024-01-24 17:23:47 +00:00
parent ca988eec2d
commit c9d44f4f36
4 changed files with 142 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Build and deploy the application to Koyeb
on:
schedule:
- cron: '55 8 * * *'
push:
branches:
- '*'
jobs:
deploy:
concurrency:
group: "${{ github.ref_name }}"
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Install and configure the Koyeb CLI
uses: koyeb-community/install-koyeb-cli@v2
with:
api_token: "${{ secrets.KOYEB_EXAMPLES_APPS_TOKEN }}"
- name: Build and deploy the application
uses: koyeb/action-git-deploy@v1
with:
app-name: spring-boot-${{ github.ref_name }}
service-ports: "8000:http"
service-routes: "/:8000"
skip-cache: true