Skip to content

Commit

Permalink
Add tags to metric name linter
Browse files Browse the repository at this point in the history
Signed-off-by: alitman <[email protected]>
  • Loading branch information
avlitman authored and nunnatsa committed Jun 27, 2023
1 parent 666a752 commit 6a7663d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/prom-metrics-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: prom-metrics-linter
on:
push:
paths:
- 'test/metrics/prom-metrics-linter'
release:
types:
- published

jobs:
build:
name: Upload prom-metrics-linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Publish operator image and generate prom-metrics-linter
- name: Login to quay.io
run: docker login -u="${{ secrets.QUAY_USER }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io

- name: Build the Docker image
run: |
docker login -u="${{ secrets.QUAY_USER }}" -p="${{ secrets.QUAY_PASSWORD }}" quay.io
CONTAINER_RUNTIME=docker IMG=quay.io/kubevirt/prom-metrics-linter:v0.0.1 make promlinter-build
CONTAINER_RUNTIME=docker IMG=quay.io/kubevirt/prom-metrics-linter:v0.0.1 make promlinter-push
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

0 comments on commit 6a7663d

Please sign in to comment.