Skip to content

chore(deps): bump github.com/prometheus/client_golang #215

chore(deps): bump github.com/prometheus/client_golang

chore(deps): bump github.com/prometheus/client_golang #215

Workflow file for this run

name: Release
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
SHOULD_PUSH: ${{ github.repository_owner == '0xERR0R' && github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: make build
- name: Set up Docker Buildx
if: env.SHOULD_PUSH == 'true'
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Get next version
id: version
if: env.SHOULD_PUSH == 'true'
uses: reecetech/[email protected]
with:
scheme: semver
increment: patch
- name: Set Version
if: env.SHOULD_PUSH == 'true'
run: |
git tag ${{ steps.version.outputs.v-version }}
git push origin ${{ steps.version.outputs.v-version }}
- name: Login to DockerHub
if: env.SHOULD_PUSH == 'true'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build the Docker image and push
if: env.SHOULD_PUSH == 'true'
run: make docker-buildx-push DOCKER_TAG=${{ steps.version.outputs.version }}