-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (73 loc) · 2.31 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
on: [push, pull_request]
name: Dev
jobs:
build-metrics-proxy:
strategy:
matrix:
go-version: [1.23.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.23.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 }}