Skip to content

fix(deps): update module github.com/prometheus/client_golang to v1.20.1 #36

fix(deps): update module github.com/prometheus/client_golang to v1.20.1

fix(deps): update module github.com/prometheus/client_golang to v1.20.1 #36

name: Publish Container Image to Docker Hub
on:
push:
branches:
- "master"
tags:
- "**"
jobs:
build-push-registry:
runs-on: ubuntu-latest
env:
NAMESPACE: chadiem
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Fetch Repository Name
id: repo-name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.NAMESPACE }}/${{ env.REPOSITORY_NAME }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push Docker Image to Artifact Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64