forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: add workflow for renovate to build base images
[ upstream commit f054f94 ] As renovate can automate a lot of our dependency updates it will also be possible for it to trigger the workflow to build base images. For this to happen we need to create a new workflow that reuses the existing workflow by using a different environment. This environment is protected to only be executed on the branches that are created by renovate. Signed-off-by: André Martins <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
1 deletion.
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,30 @@ | ||
name: Base Image Release Build - Renovate | ||
|
||
# Any change in triggers needs to be reflected in the concurrency group. | ||
on: | ||
push: | ||
branches: | ||
- "renovate/v1.14-**" | ||
paths: | ||
- images/runtime/** | ||
- images/builder/** | ||
|
||
permissions: | ||
# To be able to access the repository with `actions/checkout` | ||
contents: read | ||
# Required to generate OIDC tokens for `sigstore/cosign-installer` authentication | ||
id-token: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-base-images-from-renovate: | ||
name: "Build Base Images From Renovate" | ||
uses: ./.github/workflows/build-images-base.yaml | ||
secrets: inherit | ||
with: | ||
# Build the base images from this environment which is set up specifically | ||
# for renovate. | ||
environment: release-base-images-renovate |
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