Skip to content

Threadfin Build

Threadfin Build #3

Workflow file for this run

name: Threadfin Build
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
buildBinaries:
name: Build and release binaries
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
ref: main
- name: Set up and Build
uses: actions/setup-go@v4
with:
go-version: 1.22
id: go
- name: Build Binaries
run: |
go mod tidy && go mod vendor
bash ${GITHUB_WORKSPACE}/Utility/create_binaries.sh
- name: Create a Release
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
files: dist/*
make_latest: true
buildDockerImages:
name: Build and push Docker Images
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: true
no-cache: true
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
tags: mgoerentz/threadfin:latest,mgoerentz/threadfin:${{ github.ref_name }}