-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dedicated Workload Identity implementation
Signed-off-by: Yury Tsarev <[email protected]>
- Loading branch information
0 parents
commit 8aed934
Showing
21 changed files
with
921 additions
and
0 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,53 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended", | ||
"helpers:pinGitHubActionDigests", | ||
":semanticCommits" | ||
], | ||
"rebaseWhen": "conflicted", | ||
"prConcurrentLimit": 5, | ||
"baseBranches": ["main"], | ||
"labels": ["automated"], | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"description": "Bump up version in the Makefile", | ||
"fileMatch": ["^Makefile$"], | ||
"matchStrings": [ | ||
"UP_VERSION = (?<currentValue>.*?)\\n" | ||
], | ||
"datasourceTemplate": "github-releases", | ||
"depNameTemplate": "upbound/up", | ||
}, { | ||
"customType": "regex", | ||
"description": "Bump uptest version in the Makefile", | ||
"fileMatch": ["^Makefile$"], | ||
"matchStrings": [ | ||
"UPTEST_VERSION = (?<currentValue>.*?)\\n" | ||
], | ||
"datasourceTemplate": "github-releases", | ||
"depNameTemplate": "upbound/uptest", | ||
}, { | ||
"customType": "regex", | ||
"description": "Bump Crossplane(UXP) version in the Makefile", | ||
"fileMatch": ["^Makefile$"], | ||
"matchStrings": [ | ||
"CROSSPLANE_VERSION = (?<currentValue>.*?)\\n" | ||
], | ||
"datasourceTemplate": "github-releases", | ||
"versioningTemplate": "regex:^v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-up.1$", | ||
"extractVersionTemplate": "^v(?<version>.*)$", | ||
"depNameTemplate": "upbound/universal-crossplane", | ||
}, { | ||
"customType": "regex", | ||
"description": "Bump providers/functions/configurations in crossplane.yaml", | ||
"fileMatch": ["crossplane.yaml"], | ||
"matchStrings": [ | ||
"#\\s*renovate:\\s*datasource=(?<datasource>[^\\s]+)\\s+depName=(?<depName>[^\\s]+)\\s*\\n\\s*version:\\s*\"(?<currentValue>[^\"]+)\"" | ||
], | ||
"datasourceTemplate": "{{{datasource}}}", | ||
"depNameTemplate": "{{{depName}}}", | ||
} | ||
], | ||
} |
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,75 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
workflow_dispatch: {} | ||
|
||
env: | ||
DOCKER_BUILDX_VERSION: 'v0.8.2' | ||
XPKG_ACCESS_ID: ${{ secrets.XPKG_ACCESS_ID }} | ||
|
||
jobs: | ||
detect-noop: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
noop: ${{ steps.noop.outputs.should_skip }} | ||
steps: | ||
- name: Detect No-op Changes | ||
id: noop | ||
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
paths_ignore: '["**.md", "**.png", "**.jpg"]' | ||
do_not_skip: '["workflow_dispatch", "schedule", "push"]' | ||
|
||
publish-artifacts: | ||
runs-on: ubuntu-22.04 | ||
needs: detect-noop | ||
if: needs.detect-noop.outputs.noop != 'true' | ||
|
||
steps: | ||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Setup Docker Buildx | ||
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3 | ||
with: | ||
version: ${{ env.DOCKER_BUILDX_VERSION }} | ||
install: true | ||
|
||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Fetch History | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Build Artifacts | ||
run: make -j2 build.all | ||
env: | ||
# We're using docker buildx, which doesn't actually load the images it | ||
# builds by default. Specifying --load does so. | ||
BUILD_ARGS: "--load" | ||
|
||
- name: Publish Artifacts to GitHub | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 | ||
with: | ||
name: output | ||
path: _output/** | ||
|
||
- name: Login to Upbound | ||
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3 | ||
if: env.XPKG_ACCESS_ID != '' | ||
with: | ||
registry: xpkg.upbound.io | ||
username: ${{ secrets.XPKG_ACCESS_ID }} | ||
password: ${{ secrets.XPKG_TOKEN }} | ||
|
||
- name: Publish Artifacts | ||
run: make -j2 publish BRANCH_NAME=${GITHUB_REF##*/} |
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,14 @@ | ||
name: End to End Testing | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
e2e: | ||
uses: upbound/official-providers-ci/.github/workflows/pr-comment-trigger.yml@main | ||
with: | ||
package-type: configuration | ||
secrets: | ||
UPTEST_CLOUD_CREDENTIALS: ${{ secrets.UPTEST_CLOUD_CREDENTIALS }} | ||
UPTEST_DATASOURCE: ${{ secrets.UPTEST_DATASOURCE }} |
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,26 @@ | ||
name: Tag | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Release version (e.g. v0.1.0)' | ||
required: true | ||
message: | ||
description: 'Tag message' | ||
required: true | ||
|
||
jobs: | ||
create-tag: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
|
||
- name: Create Tag | ||
uses: negz/create-tag@39bae1e0932567a58c20dea5a1a0d18358503320 # v1 | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
message: ${{ github.event.inputs.message }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,15 @@ | ||
name: yamllint | ||
on: [pull_request] | ||
jobs: | ||
yamllint: | ||
name: runner / yamllint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: yamllint | ||
uses: reviewdog/action-yamllint@508148c0d959b166798f9792d1b29dddcac37348 # v1.16.0 | ||
with: | ||
reporter: github-pr-review | ||
filter_mode: nofilter | ||
yamllint_flags: 'apis/' | ||
fail_on_error: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/.cache | ||
/.work | ||
/_output | ||
/results | ||
/.idea | ||
|
||
*.xpkg | ||
kubeconfig | ||
devbox* |
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,3 @@ | ||
[submodule "build"] | ||
path = build | ||
url = https://github.com/crossplane/build |
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,5 @@ | ||
extends: default | ||
|
||
rules: | ||
line-length: disable | ||
document-start: disable |
Oops, something went wrong.