Skip to content

build(deps): bump golang from 1.24.2-alpine to 1.24.4-alpine (#631) #3

build(deps): bump golang from 1.24.2-alpine to 1.24.4-alpine (#631)

build(deps): bump golang from 1.24.2-alpine to 1.24.4-alpine (#631) #3

Workflow file for this run

name: Push Tagged Container And Release
on:
push:
tags:
- v*.*.*
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: setup go
uses: actions/setup-go@v5
with:
go-version: 1.24.x
- name: checkout
uses: actions/checkout@v4
- name: unit test
run: make test
- name: test build
run: make build
release:
runs-on: ubuntu-latest
needs: [unit-test]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
build-args: |
KONSTRAINT_VER="${{ github.ref_name }}"
platforms: linux/arm/v7,linux/arm64,linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}