Skip to content

Commit 5aa89e5

Browse files
authored
Merge pull request #15 from sysdiglabs/master
Master Fetch
2 parents eaea7ca + 88bd4b2 commit 5aa89e5

32 files changed

+2011
-1529
lines changed

.drone.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@ services:
1616
- 6383
1717

1818
- name: redis6
19-
image: redis:6
19+
image: redis:6.2
2020
pull: if-not-exists
2121
commands:
2222
- "redis-server --protected-mode no --dbfilename dump6.rdb"
2323
ports:
2424
- 6379
2525

26+
- name: redis7
27+
image: redis:7.0
28+
pull: if-not-exists
29+
commands:
30+
- "redis-server --port 6384 --protected-mode no --dbfilename dump7.rdb"
31+
ports:
32+
- 6384
33+
2634
- name: pwd-redis5
2735
image: redis:5
2836
pull: if-not-exists
@@ -48,15 +56,15 @@ services:
4856
- 6381
4957

5058
- name: keydb-01
51-
image: "eqalpha/keydb:x86_64_v5.3.0"
59+
image: "eqalpha/keydb:x86_64_v6.3.1"
5260
pull: if-not-exists
5361
commands:
5462
- "keydb-server --protected-mode no --port 6401 --dbfilename dump-keydb-01.rdb"
5563
ports:
5664
- 6401
5765

5866
- name: keydb-02
59-
image: "eqalpha/keydb:x86_64_v5.3.0"
67+
image: "eqalpha/keydb:x86_64_v6.3.1"
6068
pull: if-not-exists
6169
commands:
6270
- "keydb-server --protected-mode no --port 6402 --active-replica yes --replicaof keydb-01 6401 --dbfilename dump-keydb-02.rdb"
@@ -77,10 +85,10 @@ services:
7785

7886
steps:
7987
- name: start
80-
image: "golang:1.17"
88+
image: "golang:1.18"
8189
pull: if-not-exists
8290
commands:
83-
- sleep 10
91+
- sleep 20
8492
- 'echo "start"'
8593
when:
8694
event:
@@ -150,7 +158,7 @@ steps:
150158
- start
151159

152160
- name: tests
153-
image: "golang:1.17"
161+
image: "golang:1.18"
154162
pull: if-not-exists
155163
environment:
156164
GO111MODULE: on
@@ -169,7 +177,7 @@ steps:
169177

170178

171179
- name: mixins
172-
image: golang:1.17
180+
image: golang:1.18
173181
pull: if-not-exists
174182
commands:
175183
- cd ./contrib/redis-mixin
@@ -186,7 +194,7 @@ steps:
186194

187195

188196
- name: coverage-codecov
189-
image: golang:1.17
197+
image: golang:1.18
190198
pull: if-not-exists
191199
environment:
192200
CODECOV_TOKEN:
@@ -204,7 +212,7 @@ steps:
204212

205213

206214
- name: coverage-coveralls
207-
image: "golang:1.17"
215+
image: "golang:1.18"
208216
pull: if-not-exists
209217
environment:
210218
GO111MODULE: on
@@ -223,7 +231,7 @@ steps:
223231

224232

225233
- name: build-binaries
226-
image: "golang:1.17"
234+
image: "golang:1.18"
227235
pull: if-not-exists
228236
environment:
229237
GO111MODULE: on
@@ -578,7 +586,7 @@ steps:
578586

579587

580588
- name: release-github-binaries
581-
image: "golang:1.17"
589+
image: "golang:1.18"
582590
pull: if-not-exists
583591
environment:
584592
GITHUB_TOKEN:

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ updates:
2121
schedule:
2222
interval: "daily"
2323
registries:
24-
- docker-registry-quay-io
24+
- docker-registry-quay-io

.github/renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ignorePaths": [
3+
".drone.yml"
4+
],
5+
"packageRules": [
6+
{
7+
"matchPackageNames": ["redis"],
8+
"enabled": false
9+
}
10+
]
11+
}

.github/workflows/depsreview.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: 'Dependency Review'
2+
on: [pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Checkout Repository'
12+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
13+
- name: 'Dependency Review'
14+
uses: actions/dependency-review-action@1c59cdf2a9c7f29c90e8da32237eb04b81bad9f0 # tag=v2

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ test:
2626
TEST_REDIS_URI="redis://redis6:6379" \
2727
TEST_REDIS5_URI="redis://redis5:6383" \
2828
TEST_REDIS6_URI="redis://redis6:6379" \
29+
TEST_REDIS7_URI="redis://redis7:6384" \
2930
TEST_REDIS_2_8_URI="redis://redis-2-8:6381" \
3031
TEST_KEYDB01_URI="redis://keydb-01:6401" \
3132
TEST_KEYDB02_URI="redis://keydb-02:6402" \
@@ -70,13 +71,14 @@ GO_LDFLAGS:="-s -w -extldflags \"-static\" -X main.BuildVersion=${DRONE_TAG} -X
7071

7172
.PHONE: build-binaries
7273
build-binaries:
73-
go get github.com/oliver006/gox@master
74+
go install github.com/oliver006/gox@master
7475

7576
rm -rf .build | true
7677

7778
export CGO_ENABLED=0 ; \
7879
gox -os="linux windows freebsd netbsd openbsd" -arch="amd64 386" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
7980
gox -os="darwin solaris illumos" -arch="amd64" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
81+
gox -os="darwin" -arch="arm64" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
8082
gox -os="linux freebsd netbsd" -arch="arm" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
8183
gox -os="linux" -arch="arm64 mips64 mips64le ppc64 ppc64le s390x" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
8284
echo "done"

0 commit comments

Comments
 (0)