Skip to content

Introduce 'status' label into metrics (#13) #22

Introduce 'status' label into metrics (#13)

Introduce 'status' label into metrics (#13) #22

Workflow file for this run

name: Build Docker image
on:
push:
branches:
- master
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get all git tags
run: git fetch --prune --unshallow --tags
- uses: actions/setup-go@v3
with:
go-version: '>=1.17.0'
- name: Run tests
run: make test
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: sonarsource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build image
run: make image
- name: Sign in to Docker Hub
run: echo -n ${{secrets.DOCKER_HUB_PASSWORD}} | docker login -u ${{secrets.DOCKER_HUB_USERNAME}} --password-stdin
- name: Push image to registry
run: make publish
- name: Sign out from Docker Hub
if: always()
run: docker logout