Skip to content

Bump golang from 1.22.5-alpine to 1.23.1-alpine #125

Bump golang from 1.22.5-alpine to 1.23.1-alpine

Bump golang from 1.22.5-alpine to 1.23.1-alpine #125

Workflow file for this run

name: Docker Image CI
on:
pull_request:
push:
branches:
- 'main'
tags:
- 'v*'
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/stephanme/modbus_exporter
tags: |
type=schedule
type=ref,event=pr
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}