chore: Update Dockerfile golang to 1.23.4 #526
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
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/[email protected] | |
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 | |