-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bump release pipeline to 1.11.4 (#12060)
- Loading branch information
1 parent
201540b
commit 4022331
Showing
12 changed files
with
219 additions
and
31 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"subdir": "workflows" | ||
} | ||
}, | ||
"version": "v1.11.2" | ||
"version": "v1.11.4" | ||
} | ||
], | ||
"legacyImports": true | ||
|
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
6 changes: 4 additions & 2 deletions
6
.github/vendor/github.com/grafana/loki-release/workflows/build.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
.github/vendor/github.com/grafana/loki-release/workflows/common.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
.github/vendor/github.com/grafana/loki-release/workflows/main.jsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
42 changes: 36 additions & 6 deletions
42
.github/vendor/github.com/grafana/loki-release/workflows/release.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.github/vendor/github.com/grafana/loki-release/workflows/workflows.jsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,18 +3,20 @@ concurrency: | |
env: | ||
DOCKER_USERNAME: "grafana" | ||
IMAGE_PREFIX: "grafana" | ||
RELEASE_LIB_REF: "v1.11.2" | ||
RELEASE_LIB_REF: "v1.11.4" | ||
RELEASE_REPO: "grafana/loki" | ||
SKIP_VALIDATION: false | ||
USE_GITHUB_APP_TOKEN: true | ||
VERSIONING_STRATEGY: "always-bump-minor" | ||
jobs: | ||
check: | ||
uses: "grafana/loki-release/.github/workflows/[email protected].2" | ||
uses: "grafana/loki-release/.github/workflows/[email protected].4" | ||
with: | ||
build_image: "grafana/loki-build-image:0.29.3-go1.20.10" | ||
golang_ci_lint_version: "v1.51.2" | ||
release_lib_ref: "v1.11.2" | ||
release_lib_ref: "v1.11.4" | ||
skip_validation: false | ||
use_github_app_token: true | ||
create-release-pr: | ||
needs: | ||
- "dist" | ||
|
@@ -49,6 +51,22 @@ jobs: | |
run: | | ||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
working-directory: "release" | ||
- id: "get_github_app_token" | ||
if: "${{ fromJSON(env.USE_GITHUB_APP_TOKEN) }}" | ||
name: "get github app token" | ||
uses: "actions/github-app-token@v1" | ||
with: | ||
app-id: "${{ secrets.APP_ID }}" | ||
owner: "${{ github.repository_owner }}" | ||
private-key: "${{ secrets.APP_PRIVATE_KEY }}" | ||
- id: "github_app_token" | ||
name: "set github token" | ||
run: | | ||
if [[ "${USE_GITHUB_APP_TOKEN}" == "true" ]]; then | ||
echo "token=${{ steps.get_github_app_token.outputs.token }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "token=${{ secrets.GH_TOKEN }}" >> $GITHUB_OUTPUT | ||
fi | ||
- env: | ||
SHA: "${{ github.sha }}" | ||
id: "release" | ||
|
@@ -66,7 +84,7 @@ jobs: | |
--repo-url "${{ env.RELEASE_REPO }}" \ | ||
--separate-pull-requests false \ | ||
--target-branch "${{ steps.extract_branch.outputs.branch }}" \ | ||
--token "${{ secrets.GH_TOKEN }}" \ | ||
--token "${{ steps.github_app_token.outputs.token }}" \ | ||
--versioning-strategy "${{ env.VERSIONING_STRATEGY }}" | ||
working-directory: "lib" | ||
|
@@ -691,6 +709,22 @@ jobs: | |
run: | | ||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT | ||
working-directory: "release" | ||
- id: "get_github_app_token" | ||
if: "${{ fromJSON(env.USE_GITHUB_APP_TOKEN) }}" | ||
name: "get github app token" | ||
uses: "actions/github-app-token@v1" | ||
with: | ||
app-id: "${{ secrets.APP_ID }}" | ||
owner: "${{ github.repository_owner }}" | ||
private-key: "${{ secrets.APP_PRIVATE_KEY }}" | ||
- id: "github_app_token" | ||
name: "set github token" | ||
run: | | ||
if [[ "${USE_GITHUB_APP_TOKEN}" == "true" ]]; then | ||
echo "token=${{ steps.get_github_app_token.outputs.token }}" >> $GITHUB_OUTPUT | ||
else | ||
echo "token=${{ secrets.GH_TOKEN }}" >> $GITHUB_OUTPUT | ||
fi | ||
- id: "version" | ||
name: "get release version" | ||
run: | | ||
|
@@ -703,10 +737,10 @@ jobs: | |
--manifest-file .release-please-manifest.json \ | ||
--pull-request-title-pattern "chore\${scope}: release\${component} \${version}" \ | ||
--release-type simple \ | ||
--repo-url="${{ env.RELEASE_REPO }}" \ | ||
--repo-url "${{ env.RELEASE_REPO }}" \ | ||
--separate-pull-requests false \ | ||
--target-branch "${{ steps.extract_branch.outputs.branch }}" \ | ||
--token="${{ secrets.GH_TOKEN }}" \ | ||
--token "${{ steps.github_app_token.outputs.token }}" \ | ||
--versioning-strategy "${{ env.VERSIONING_STRATEGY }}" | ||
cat release.json | ||
|
Oops, something went wrong.