-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.27 KB
/
release.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
name: Release
on:
push:
tags:
env:
CARGO_TERM_COLOR: always
DOCK_REG: registry.mrfriendly.uk
jobs:
server:
name: Server build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make build-server
- run: docker tag $DOCK_REG/wilford-server:latest $DOCK_REG/wilford-server:${{ github.ref_name }}
- run: docker push $DOCK_REG/wilford-server:latest
- run: docker push $DOCK_REG/wilford-server:${{ github.ref_name }}
ui:
name: UI build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '21'
- run: (cd ui; yarn install)
- run: make build-ui
- run: docker tag $DOCK_REG/wilford-ui:latest $DOCK_REG/wilford-ui:${{ github.ref_name }}
- run: docker push $DOCK_REG/wilford-ui:latest
- run: docker push $DOCK_REG/wilford-ui:${{ github.ref_name }}
docs:
name: Docs build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo install mdbook --locked
- run: make build-ui
- run: docker tag $DOCK_REG/wilford-docs:latest $DOCK_REG/wilford-docs:${{ github.ref_name }}
- run: docker push $DOCK_REG/wilford-docs:latest
- run: docker push $DOCK_REG/wilford-docs:${{ github.ref_name }}