Skip to content

prom-metrics-linter

prom-metrics-linter #3

name: prom-metrics-linter
on:
release:
types:
- published
jobs:
build:
name: Upload prom-metrics-linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to quay.io
run: docker login -u="${{ secrets.QUAY_USER }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io
- name: Build the Docker image
run: |
IMAGE_NAME="quay.io/kubevirt/prom-metrics-linter:${GITHUB_REF##*/}"
CONTAINER_RUNTIME=docker IMG="${IMAGE_NAME}" make promlinter-build
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
- name: Push the Docker image
run: CONTAINER_RUNTIME=docker IMG="${{ env.IMAGE_NAME }}" make promlinter-push