2022-05-31 15:01:36 +00:00
|
|
|
name: release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-23 19:03:58 +00:00
|
|
|
-
|
|
|
|
name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2022-05-31 15:01:36 +00:00
|
|
|
-
|
|
|
|
name: Install Go
|
2023-05-23 18:50:20 +00:00
|
|
|
uses: actions/setup-go@v4
|
2022-05-31 15:01:36 +00:00
|
|
|
with:
|
2023-03-08 19:58:55 +00:00
|
|
|
go-version: '1.19.x'
|
2022-05-31 15:01:36 +00:00
|
|
|
-
|
|
|
|
name: Install node
|
2023-05-23 18:50:20 +00:00
|
|
|
uses: actions/setup-node@v3
|
2022-05-31 15:01:36 +00:00
|
|
|
with:
|
2023-03-07 03:25:05 +00:00
|
|
|
node-version: '18'
|
2023-05-23 18:50:20 +00:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: './web/package-lock.json'
|
2022-05-31 15:01:36 +00:00
|
|
|
-
|
|
|
|
name: Docker login
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Install dependencies
|
|
|
|
run: make build-deps-ubuntu
|
|
|
|
-
|
|
|
|
name: Build and publish
|
|
|
|
run: make release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Print build results and checksums
|
|
|
|
run: make cli-build-results
|