-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (31 loc) · 1022 Bytes
/
deployment.yml
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
name: koyeb.com deployment
on:
push:
branches: ["master"]
jobs:
deploy-website:
if: github.repository_owner == 'primatejs'
runs-on: ubuntu-latest
steps:
- name: Install Koyeb CLI
uses: koyeb-community/install-koyeb-cli@v2
with:
api_token: "${{ secrets.KOYEB_API_TOKEN }}"
- name: Build and deploy to Koyeb
uses: koyeb/action-git-deploy@v1
with:
app-name: "website"
service-name: "primate"
service-instance-type: "free"
service-regions: "fra"
service-ports: "6161:http"
service-routes: "/:6161"
skip-cache: true
git-workdir: "./"
git-branch: "master"
git-builder: "docker"
git-docker-dockerfile: "./packages/website/Dockerfile"
- name: "Purge Fastly cache"
run: |
curl -X POST -H "Fastly-Key: ${{ secrets.FASTLY_API_KEY }}" \
"https://api.fastly.com/service/${{ secrets.FASTLY_SERVICE_ID }}/purge_all"