Skip to content

build(deps): bump github.com/prometheus/client_golang from 1.20.2 to … #28

build(deps): bump github.com/prometheus/client_golang from 1.20.2 to …

build(deps): bump github.com/prometheus/client_golang from 1.20.2 to … #28

name: build-and-push-tag-and-main
on:
push:
branches:
- main
tags:
- v*
jobs:
build-and-push:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
run: |
docker buildx build \
--platform linux/arm64/v8,linux/amd64,linux/arm,linux/ppc64le,linux/s390x \
--build-arg GO_VERSION=$(grep -m 1 go go.mod | cut -d\ -f2) \
-t ghcr.io/jimmidyson/configmap-reload:${{ github.ref_name == 'main' && 'dev' || github.ref_name }} \
--push \
.