Skip to content

Release πŸš€

Release πŸš€ #56

Workflow file for this run

name: Release πŸš€
on:
release:
types:
- created
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Build binaries and container images
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup ko
uses: imjasonh/[email protected]
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: web/package.json
cache: 'npm'
cache-dependency-path: |
web/package-lock.json
- name: Build container images
env:
TAGS: ${{ github.ref_name }},${{ github.sha }},latest
shell: bash
run: |
./build.sh
export KO_DOCKER_REPO="ghcr.io/${GITHUB_REPOSITORY@L}"
ko build --bare --platform=all --tags=$TAGS ./cmd/bf
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: bifrost
path: |
bin/*
docs/ca-openapi.yml
- name: Update Github release
uses: softprops/action-gh-release@v1
with:
append_body: true
generate_release_notes: true
files: |
bin/*
docs/ca-openapi.yml