Skip to content

Build and deploy the application to Koyeb #544

Build and deploy the application to Koyeb

Build and deploy the application to Koyeb #544

Workflow file for this run

name: Build and deploy the application to Koyeb
on:
schedule:
- cron: '20 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/koyeb-actions@v2
with:
api_token: "${{ secrets.KOYEB_EXAMPLES_APPS_TOKEN }}"
- name: Create application secret
uses: koyeb/action-git-deploy/secret@v1
with:
secret-name: KOA_PRISMA_DATABASE_URL
secret-value: "${{ secrets.MYSQL_URL }}"
- name: Build and deploy the application
uses: koyeb/action-git-deploy@v1
with:
app-name: koa-prisma-${{ github.ref_name }}
service-env: "DATABASE_URL=@KOA_PRISMA_DATABASE_URL"
service-ports: "8080:http"
service-routes: "/:8080"
skip-cache: true