Skip to content

Fixing the pre-embed asset compilation #8

Fixing the pre-embed asset compilation

Fixing the pre-embed asset compilation #8

Workflow file for this run

name: release build
on:
push:
tags:
- '*'
jobs:
build:
strategy:
matrix:
os: ['linux', 'darwin', 'windows']
permissions:
contents: write
runs-on: ubuntu-latest
name: 'Build All Artefacts'
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v4
- name: 'Setup Go'
uses: actions/setup-go@v4
with:
go-version: ^1.22
- name: 'Setup Node'
uses: actions/setup-node@v4
with:
node-version: 18
- name: 'Build Frontend Artefacts'
run: yarn && NODE_OPTIONS=--openssl-legacy-provider yarn build
- name: 'Mirror Dist'
run: cp -r ./dist ./pkg/server/dist
- name: 'Compile Binary'
run: mkdir bin && GOOS=${{ matrix.os }} GOARCH=amd64 go build -o bin/roadie-${{ matrix.os }}-amd64 ./cmd/roadie
- name: 'Archive Binary'
uses: actions/upload-artifact@v4
with:
name: binary-amd64-${{ matrix.os }}
path: bin/roadie-${{ matrix.os }}-amd64
- name: 'Login to Docker Hub'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: 'Extract Metadata'
id: meta
uses: docker/metadata-action@v5
with:
images: cloudcloud/roadie
- name: 'Build and Push Image'
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: 'Create Github Release'
uses: ncipollo/release-action@v1
with:
artifacts: 'bin/*'
omitBody: true