Skip to content

Bump docker/build-push-action from 6.11.0 to 6.12.0 #94

Bump docker/build-push-action from 6.11.0 to 6.12.0

Bump docker/build-push-action from 6.11.0 to 6.12.0 #94

Workflow file for this run

name: Build Docker Image
# Defines environmental variables
env:
GO_VERSION: '1.23.4'
GO_LINTER_VERSION: 'v1.62.0'
# Controls when the action will run
on:
pull_request:
branches:
- main
# A series of workflow jobs that can run sequentially or in parallel
jobs:
build:
name: Build and Test
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Set up the Go environment
- name: Setup Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: "${{ env.GO_VERSION }}"
- name: Install Go linter
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
sh -s -- -b $(go env GOPATH)/bin ${{ env.GO_LINTER_VERSION }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- name: Optionally, login to Docker repository
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
if: env.DOCKER_USERNAME != null
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and test the application (also lints)
- name: Build Docker container
run: make all