-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.01 KB
/
cli-docs.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
name: Anubis LMS Docs
defaults:
run:
shell: bash
on:
push:
branches: [ main ]
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
environment: anubis
steps:
- uses: actions/checkout@v2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Log into DigitalOcean container registry
run: doctl registry login
- name: Build container image
run: make build
- name: Push container image
run: make push
deploy:
name: Deploy docs
needs: [ build ]
runs-on: ubuntu-latest
environment: anubis
steps:
- uses: actions/checkout@v2
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Log into DigitalOcean container registry
run: doctl kubernetes cluster kubeconfig save anubis
- name: Deploy to cluster
run: make deploy