forked from koyeb/example-expressjs
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 758 Bytes
/
deploy.yaml
File metadata and controls
29 lines (27 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build and deploy the application to Koyeb
on:
schedule:
- cron: '55 7 * * *'
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: Install dependencies
run: npm install
- name: Build and deploy the application
uses: koyeb/action-git-deploy@v1
with:
app-name: expressjs-${{ github.ref_name }}
service-ports: "3000:http"
service-routes: "/:3000"
skip-cache: true