-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 837 Bytes
/
Copy pathdeploy.yml
File metadata and controls
33 lines (31 loc) · 837 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
30
31
32
33
name: deploy
on:
push:
branches:
- main
jobs:
caprover:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.11.0
- working-directory: ./website
run: |
pnpm install
pnpm run build
- uses: docker/login-action@v3
with:
registry: docker.mattglei.ch
username: admin
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build -t docker.mattglei.ch/terminal .
docker push docker.mattglei.ch/terminal
- uses: caprover/deploy-from-github@v1.1.2
with:
server: https://lab.mattglei.ch
app: terminal
token: '${{ secrets.CAPROVER_APP_TOKEN }}'
image: docker.mattglei.ch/terminal