Skip to content

Commit

Permalink
Release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed May 17, 2024
1 parent 925ddf1 commit e2dfde2
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,42 @@ on:

env:
CARGO_TERM_COLOR: always
DOCK_REG: registry.mrfriendly.uk

jobs:
fmt:
server:
name: Server build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make build-server
- run: docker tag registry.mrfriendly.uk/wilford-server:latest registry.mrfriendly.uk/wilford-server:${{ github.ref_name }}
- run: docker push registry.mrfriendly.uk/wilford-server:latest
- run: docker push registry.mrfriendly.uk/wilford-server:${{ github.ref_name }}
- 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 }}

0 comments on commit e2dfde2

Please sign in to comment.