-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.24 KB
/
deploy.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
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- test-action
workflow_dispatch:
jobs:
deploy_web:
name: Deploy web
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
- uses: actions/checkout@v3
- uses: adamghill/build-docker-and-deploy-to-caprover@docker-image-name
with:
caprover-app-name: fediview-web
github-token: ${{ secrets.GITHUB_TOKEN }}
caprover-server-url: ${{ secrets.CAPROVER_SERVER_URL }}
caprover-app-token: ${{ secrets.CAPROVER_WEB_APP_TOKEN }}
docker-file-name: ./Dockerfile
deploy_worker:
name: Deploy worker
runs-on: ubuntu-latest
needs: deploy_web
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: adamghill/build-docker-and-deploy-to-caprover@docker-image-name
with:
caprover-app-name: fediview-q2-worker
github-token: ${{ secrets.GITHUB_TOKEN }}
caprover-server-url: ${{ secrets.CAPROVER_SERVER_URL }}
caprover-app-token: ${{ secrets.CAPROVER_WORKER_APP_TOKEN }}
docker-file-name: ./Dockerfile-q2-worker