Skip to content

Build and deploy the application to Koyeb #744

Build and deploy the application to Koyeb

Build and deploy the application to Koyeb #744

Workflow file for this run

name: Build and deploy the application to Koyeb
on:
schedule:
- cron: "5 7 * * *"
push:
branches:
- "*"
# The workflow_call event is used to trigger the job from another workflow, in
# which case the git-url must be set to the repository to build.
workflow_call:
secrets:
KOYEB_EXAMPLES_APPS_TOKEN:
required: true
inputs:
git-url:
description: "The repository to build"
required: true
type: string
api-url:
description: "The Koyeb API URL"
required: false
type: string
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@main
with:
api_token: "${{ secrets.KOYEB_EXAMPLES_APPS_TOKEN }}"
api_url: "${{ inputs.api-url || 'https://app.koyeb.com' }}"
- name: Build and deploy the application
uses: koyeb/action-git-deploy@v1
with:
app-name: flask-${{ github.ref_name }}
service-env: "PORT=8000"
service-ports: "8000:http"
service-routes: "/:8000"
git-url: "github.com/${{ inputs.git-url || github.repository }}"
skip-cache: true