Skip to content

chore(deps): bump golang.org/x/tools in /tools/fiximports (#281) #548

chore(deps): bump golang.org/x/tools in /tools/fiximports (#281)

chore(deps): bump golang.org/x/tools in /tools/fiximports (#281) #548

Workflow file for this run

name: build-lint
on:
push:
branches:
- "master"
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- "*"
paths:
- "!**"
- "Dockerfile"
- "docker-bake.hcl"
- "tools.go"
- "go.mod"
- "go.sum"
- "vendor/**"
- "scripts"
- ".github/**/**"
jobs:
lint-dockerfiles:
strategy:
fail-fast: false
max-parallel: 4
matrix:
dockerfile:
[
"Dockerfile",
]
runs-on: "ubuntu-22.04"
name: Lint ${{ matrix.dockerfile }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint
uses: jbergstroem/hadolint-gh-action@v1
with:
dockerfile: ${{ matrix.dockerfile }}
annotate: true
error_level: 2
check-release-config:
runs-on: 'ubuntu-22.04'
name: Check releaser configs
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up go
uses: actions/setup-go@v5.2.0
with:
go-version: 1.23.x
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Check release
run: |
make check-releaser
shell: bash
build:
needs: [ lint-dockerfiles, check-release-config ]
name: Build
runs-on: "ubuntu-22.04"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'linux/arm64,linux/amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.6.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Docker tags based on the following events/attributes
tags: |
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build Docker image
uses: docker/bake-action@v5.11.0
env:
TAGS: ${{ steps.meta.outputs.tags }}
LABELS: ${{ steps.meta.outputs.labels }}
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
push: false
pull: true