Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit d523a63

Browse files
committed
Steps needed for the ironcore project immigration
Signed-off-by: Guvenc Gulce <[email protected]>
1 parent 488eb26 commit d523a63

11 files changed

+49
-37
lines changed

.github/dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ updates:
77
interval: "daily"
88
open-pull-requests-limit: 10
99
reviewers:
10-
- "onmetal/onmetal-api-maintainers"
10+
- "ironcore-dev/networking"
1111
- package-ecosystem: "github-actions"
1212
directory: "/"
1313
schedule:
1414
interval: "daily"
1515
open-pull-requests-limit: 10
1616
reviewers:
17-
- "onmetal/onmetal-api-maintainers"
17+
- "ironcore-dev/networking"

.github/workflows/golangci-lint.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
name: Lint Golang Codebase
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
paths-ignore:
66
- 'docs/**'
77
- '**/*.md'
88
jobs:
99
golangci:
1010
name: lint
11-
runs-on: self-hosted
11+
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
with:
15-
ref: ${{ github.event.pull_request.head.sha }}
16-
- uses: actions/setup-go@v3
17-
with:
18-
go-version: '1.19'
19-
- run: ./hack/setup-git-redirect.sh
20-
env:
21-
GITHUB_PAT: ${{ secrets.BOT_PAT }}
13+
- uses: actions/checkout@v4
2214
- name: golangci-lint
2315
uses: golangci/golangci-lint-action@v3
2416
with:
25-
version: v1.48.0
17+
version: v1.55.2

.github/workflows/release-drafter.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request_target:
8-
types: [ assigned, opened, reopened, synchronize ]
7+
pull_request:
8+
types: [ opened, reopened, synchronize ]
99

1010
jobs:
1111
update_release_draft:
12+
permissions:
13+
# write permission is required to create a github release
14+
contents: write
15+
# write permission is required for autolabeler
16+
# otherwise, read permission is required at least
17+
pull-requests: write
1218
runs-on: ubuntu-latest
1319
steps:
1420
# Drafts your next Release notes as Pull Requests are merged into "main"
1521
- uses: release-drafter/release-drafter@v5
1622
with:
17-
disable-releaser: github.ref != 'refs/heads/main'
1823
config-name: release-drafter.yml
1924
env:
2025
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,18 @@ permissions:
1010

1111
jobs:
1212
goreleaser:
13-
runs-on: self-hosted
13+
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
1919
- name: Fetch all tags
2020
run: git fetch --force --tags
21-
- name: Set up Go
22-
uses: actions/setup-go@v3
21+
- name: Setup Go Environment
22+
uses: actions/setup-go@v4
2323
with:
24-
go-version: 1.19
25-
- run: ./hack/setup-git-redirect.sh
26-
env:
27-
GITHUB_PAT: ${{ secrets.BOT_PAT }}
24+
go-version-file: 'go.mod'
2825
- name: Run GoReleaser
2926
uses: goreleaser/goreleaser-action@v3
3027
with:

.github/workflows/size.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Size Label
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
size-label:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: size-label
18+
uses: pascalgn/[email protected]
19+
env:
20+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/test.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: test
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [ assigned, opened, synchronize, reopened ]
66
paths-ignore:
77
- 'docs/**'
@@ -10,16 +10,13 @@ on:
1010
jobs:
1111
checks:
1212
name: run
13-
runs-on: self-hosted
13+
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
1616
with:
1717
ref: ${{ github.event.pull_request.head.sha }}
18-
- name: Set up Go
19-
uses: actions/setup-go@v3
18+
- name: Setup Go Environment
19+
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.19
22-
- run: ./hack/setup-git-redirect.sh
23-
env:
24-
GITHUB_PAT: ${{ secrets.BOT_PAT }}
21+
go-version-file: 'go.mod'
2522
- run: make test

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Prometheus DPDK Exporter
2-
Export net-dpservice statistics to prometheus readable format.
2+
Export dpservice statistics to prometheus readable format.
33

44
## About this project
55

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module go_client_1.go
1+
module github.com/ironcore-dev/prometheus-dpdk-exporter
22

3-
go 1.19
3+
go 1.21
44

55
require (
66
github.com/google/addlicense v1.1.1

go.sum

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
115115
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
116116
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
117117
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
118+
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
118119
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
119120
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
120121
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=

hack/boilerplate.go.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021 by the OnMetal authors.
2+
* Copyright (c) 2021 by the IronCore authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

hack/tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 OnMetal authors
1+
// Copyright 2021 IronCore authors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)