-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (31 loc) · 958 Bytes
/
deploy.yaml
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
30
31
32
33
34
35
name: Build and deploy the application to Koyeb
on:
schedule:
- cron: '5 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: APLO_GQL_MGO_MONGO_URL
secret-value: "${{ secrets.MONGO_URL }}"
- name: Build and deploy the application
uses: koyeb/action-git-deploy@v1
with:
app-name: aplo-gql-mgo-${{ github.ref_name }}
service-env: "MONGODB_URI=@APLO_GQL_MGO_MONGO_URL"
service-ports: "4000:http"
service-routes: "/:4000"
skip-cache: true