Skip to content

Add v1.0.0 release workflow and publish to ghcr.io #3

Add v1.0.0 release workflow and publish to ghcr.io

Add v1.0.0 release workflow and publish to ghcr.io #3

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -count=1 ./...
- name: Build
run: CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o coldkey ./cmd/coldkey
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v6
with:
version: latest
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t coldkey:ci .