Skip to content

fix

fix #1631

Workflow file for this run

name: Build
on:
push:
branches-ignore:
- renovate/**
paths:
- ".github/workflows/build.yaml"
- "go.mod"
- "go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
- "etc/Dockerfile"
pull_request:
branches:
- master
paths:
- ".github/workflows/build.yaml"
- "go.mod"
- "go.sum"
- "Taskfile.yaml"
- "**.go"
- "**.go.json"
- "etc/Dockerfile"
env:
GOTOOLCHAIN: "local"
jobs:
docker:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: false
- name: Go Build Cache (build)
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg
key: go-cache-122-${{ hashFiles('**/go.sum') }}-build
restore-keys: |
go-cache-122-${{ hashFiles('**/go.sum') }}-
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- run: go get ./...
- run: task build
name: Build Binary
- run: docker build -t tmp -f etc/Dockerfile .
- run: docker run tmp -h