-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into evgb-StreamBufAllocs
- Loading branch information
Showing
253 changed files
with
2,645 additions
and
1,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
--- | ||
name: Bump golang-version to latest version in 7.17 | ||
pipelineid: "bump-golang-version-7.17" | ||
|
||
scms: | ||
githubConfig: | ||
kind: github | ||
spec: | ||
user: '{{ requiredEnv "GIT_USER" }}' | ||
email: '{{ requiredEnv "GIT_EMAIL" }}' | ||
owner: elastic | ||
repository: beats | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GIT_USER" }}' | ||
branch: 7.17 | ||
|
||
actions: | ||
beats: | ||
kind: github/pullrequest | ||
scmid: githubConfig | ||
sourceid: latestGoVersion | ||
title: '[Automation][7.17] Bump Golang version to {{ source "latestGoVersion" }}' | ||
spec: | ||
automerge: false | ||
labels: | ||
- dependencies | ||
- backport-skip | ||
description: | | ||
Generated automatically with {{ requiredEnv "JOB_URL" }} | ||
sources: | ||
minor: | ||
name: Get minor version in .go-version | ||
kind: shell | ||
transformers: | ||
- findsubmatch: | ||
pattern: '^\d+.(\d+).\d+$' | ||
captureindex: 1 | ||
spec: | ||
command: cat .go-version | ||
|
||
latestGoVersion: | ||
name: Get Latest Go Release | ||
kind: githubrelease | ||
dependson: | ||
- minor | ||
transformers: | ||
- trimprefix: v | ||
spec: | ||
owner: elastic | ||
repository: golang-crossbuild | ||
token: '{{ requiredEnv "GITHUB_TOKEN" }}' | ||
username: '{{ requiredEnv "GIT_USER" }}' | ||
versionfilter: | ||
kind: regex | ||
pattern: v1\.{{ source "minor" }}\.(\d*)$ | ||
|
||
gomod: | ||
dependson: | ||
- latestGoVersion | ||
name: Get version in go.mod format | ||
kind: shell | ||
transformers: | ||
- findsubmatch: | ||
pattern: '^(\d+.\d+).\d+' | ||
captureindex: 1 | ||
spec: | ||
command: echo {{ source "latestGoVersion" }} | ||
|
||
conditions: | ||
dockerTag: | ||
name: Is docker image golang:{{ source "latestGoVersion" }} published | ||
kind: dockerimage | ||
spec: | ||
image: golang | ||
tag: '{{ source "latestGoVersion" }}' | ||
sourceid: latestGoVersion | ||
|
||
goDefaultVersion-check: | ||
name: Check if defined golang version differs | ||
kind: shell | ||
sourceid: latestGoVersion | ||
spec: | ||
command: 'grep -v -q {{ source "latestGoVersion" }} .go-version #' | ||
|
||
targets: | ||
update-go-version: | ||
name: "Update .go-version" | ||
sourceid: latestGoVersion | ||
scmid: githubConfig | ||
kind: file | ||
spec: | ||
content: '{{ source "latestGoVersion" }}' | ||
file: .go-version | ||
matchpattern: '\d+.\d+.\d+' | ||
update-golang.ci: | ||
name: "Update .golangci.yml" | ||
sourceid: latestGoVersion | ||
scmid: githubConfig | ||
kind: file | ||
spec: | ||
content: '{{ source "latestGoVersion" }}' | ||
file: .golangci.yml | ||
matchpattern: '\d+.\d+.\d+' | ||
update-version.asciidoc: | ||
name: "Update version.asciidoc" | ||
sourceid: latestGoVersion | ||
scmid: githubConfig | ||
kind: file | ||
spec: | ||
content: ':go-version: {{ source "latestGoVersion" }}' | ||
file: libbeat/docs/version.asciidoc | ||
matchpattern: ':go-version: \d+.\d+.\d+' | ||
update-dockerfiles: | ||
name: "Update from dockerfiles" | ||
sourceid: latestGoVersion | ||
scmid: githubConfig | ||
kind: file | ||
spec: | ||
content: 'FROM golang:{{ source "latestGoVersion" }}' | ||
# This list differs from the main branch, this is the main reason we have a separate job | ||
files: | ||
- ./metricbeat/Dockerfile | ||
- ./metricbeat/module/vsphere/_meta/Dockerfile | ||
- ./metricbeat/module/nats/_meta/Dockerfile | ||
- ./metricbeat/module/http/_meta/Dockerfile | ||
- ./filebeat/Dockerfile | ||
- ./auditbeat/Dockerfile | ||
- ./heartbeat/Dockerfile | ||
- ./packetbeat/Dockerfile | ||
- ./libbeat/Dockerfile | ||
- ./x-pack/metricbeat/module/stan/_meta/Dockerfile | ||
- ./x-pack/functionbeat/Dockerfile | ||
- ./x-pack/libbeat/Dockerfile | ||
matchpattern: 'FROM golang:\d+.\d+.\d+' | ||
update-gomod: | ||
name: "Update go.mod" | ||
sourceid: gomod | ||
scmid: githubConfig | ||
kind: file | ||
spec: | ||
content: 'go {{ source "gomod" }}' | ||
file: go.mod | ||
matchpattern: 'go \d+.\d+' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.