-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.58 KB
/
workflow.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
46
47
48
49
50
51
52
53
54
55
56
57
name: Build Docker Images
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Publish Docker Container
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push web
uses: docker/build-push-action@v3
with:
context: .
file: docker/girder.Dockerfile
tags: ghcr.io/DigitalSlideArchive/dive-dsa/dive-dsa-web:latest
push: true
-
name: Build and push worker
uses: docker/build-push-action@v3
with:
context: .
file: docker/girder_worker.Dockerfile
tags: ghcr.io/DigitalSlideArchive/dive-dsa/dive-dsa-worker:latest
push: true
docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
# Deploy docs
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base