Skip to content

Update actions/checkout digest to 08eba0b #308

Update actions/checkout digest to 08eba0b

Update actions/checkout digest to 08eba0b #308

Workflow file for this run

name: Build, Test and Release
on:
push:
branches:
- main
tags:
- v*.*.*
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: 1.24
cache: true
- name: Build All
run: go build ./...
- name: Run tests
run: go test ./...
- name: Build Binary
run: go build ./cmd/masstasker
- name: Info Binary
run: |
./masstasker --help
./masstasker --version
- uses: ko-build/setup-ko@d982fec422852203cfb2053a8ec6ad302280d04d # v0.8
- name: Build OCI image using ko
if: github.event.pull_request.head.repo.fork
run: ko build -B --push=false --platform linux/amd64,linux/arm/v7,linux/arm64 ./cmd/masstasker
- name: Build OCI image using ko and push it to ghcr
if: "!github.event.pull_request.head.repo.fork"
run: ko build -B --platform linux/amd64,linux/arm/v7,linux/arm64 ./cmd/masstasker
- name: Build OCI image using ko , tag and push it to ghcr
if: startsWith(github.ref, 'refs/tags/v')
run: |
tag=$(echo ${{ github.ref }} | cut -c11-) # get tag name without tags/refs/ prefix.
ko build -B --platform linux/amd64,linux/arm/v7,linux/arm64 --tags ${tag} ./cmd/masstasker