Skip to content

fix issue with injected labels not part of query #34

fix issue with injected labels not part of query

fix issue with injected labels not part of query #34

Workflow file for this run

on: [push, pull_request]
name: Dev
jobs:
build-metrics-proxy:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
(cd metrics-proxy && make go-build)
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push (metrics-proxy)
id: docker_build_for_metrics_proxy
uses: docker/build-push-action@v2
with:
context: metrics-proxy
file: metrics-proxy/Dockerfile
push: true
tags: ikethecoder/prometheus-metrics-proxy:latest
- name: Image digest (metrics-proxy)
run: echo ${{ steps.docker_build_for_metrics_proxy.outputs.digest }}
build-query-proxy:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: |
(cd query-proxy && make go-tidy go-build)
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push (query-proxy)
id: docker_build_for_query_proxy
uses: docker/build-push-action@v2
with:
context: query-proxy
file: query-proxy/Dockerfile
push: true
tags: ikethecoder/prometheus-query-auth-proxy:latest
- name: Image digest (query-proxy)
run: echo ${{ steps.docker_build_for_query_proxy.outputs.digest }}