Skip to content

Commit

Permalink
updatecli: use golang-crossbuild repository (elastic#35341)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed May 8, 2023
1 parent 25e882f commit c722b96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .ci/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ actions:
- dependencies
- backport-skip
description: |
It requires the version to be bumped first in golang-crossbuild project, then a new release will be added to:
https://github.com/elastic/golang-crossbuild/releases/tag/v{{ source "latestGoVersion" }}.
Otherwise it will fail until the docker images are available.
Generated automatically with {{ requiredEnv "JOB_URL" }}
sources:
minor:
Expand All @@ -47,15 +45,15 @@ sources:
dependson:
- minor
transformers:
- trimprefix: go
- trimprefix: v
spec:
owner: golang
repository: go
owner: elastic
repository: golang-crossbuild
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
username: '{{ requiredEnv "GIT_USER" }}'
versionfilter:
kind: regex
pattern: go1\.{{ source "minor" }}\.(\d*)$
pattern: v1\.{{ source "minor" }}\.(\d*)$

gomod:
dependson:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
permissions:
contents: read

env:
JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

jobs:
bump:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c722b96

Please sign in to comment.