Skip to content

Commit

Permalink
πŸ”„ synced file(s) with upbound/sa-up (#14)
Browse files Browse the repository at this point in the history
* πŸ”„ synced local 'Makefile' with remote 'shared/configurations/Makefile'

* πŸ”„ synced local '.github/workflows' with remote 'shared/configurations/workflows'

* πŸ”„ synced local '.github/renovate.json5' with remote 'shared/configurations/renovate.json5'

* πŸ”„ synced local '.gitmodules' with remote 'shared/configurations/.gitmodules'

* πŸ”„ created local '.github/CODEOWNERS' from remote '.github/CODEOWNERS'

---------

Co-authored-by: upbound-bot <null>
  • Loading branch information
upbound-bot authored Mar 4, 2025
1 parent 5e7e9db commit fac3d5d
Show file tree
Hide file tree
Showing 7 changed files with 313 additions and 124 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @upbound/team-solutions
137 changes: 89 additions & 48 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,53 +1,94 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigests",
":semanticCommits"
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
'helpers:pinGitHubActionDigests',
':semanticCommits',
],
"rebaseWhen": "conflicted",
"prConcurrentLimit": 5,
"baseBranches": ["main"],
"labels": ["automated"],
"customManagers": [
rebaseWhen: 'conflicted',
prConcurrentLimit: 5,
baseBranches: [
'main',
],
labels: [
'automated',
],
ignorePaths: [ // default renovate ignorePaths without '**/examples/**'
'**/node_modules/**',
'**/bower_components/**',
'**/vendor/**',
'**/__tests__/**',
'**/test/**',
'**/tests/**',
'**/__fixtures__/**'
],
crossplane: {
fileMatch: ['(^|/)examples/.*\\.ya?ml$']
},
packageRules: [
{
matchFileNames: [
'.github/**',
],
groupName: 'github-actions dependencies',
},
{
"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}}}",
}
matchFileNames: [
'crossplane.yaml',
],
groupName: 'crossplane dependencies',
},
{
matchFileNames: [
'Makefile',
],
groupName: 'Makefile dependencies',
},
{
matchManagers: ['crossplane'],
matchFileNames: ['examples/**'],
groupName: 'examples'
},
],
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 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}}}',
},
],
"git-submodules": {
"enabled": true
}
}
19 changes: 8 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:

env:
DOCKER_BUILDX_VERSION: 'v0.8.2'

XPKG_ACCESS_ID: ${{ secrets.XPKG_ACCESS_ID }}

jobs:
detect-noop:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
noop: ${{ steps.noop.outputs.should_skip }}
steps:
Expand All @@ -26,24 +27,19 @@ jobs:
do_not_skip: '["workflow_dispatch", "schedule", "push"]'

publish-artifacts:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'

steps:
- name: Setup QEMU
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3
with:
platforms: all

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
with:
version: ${{ env.DOCKER_BUILDX_VERSION }}
install: true

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
submodules: true

Expand All @@ -58,18 +54,19 @@ jobs:
BUILD_ARGS: "--load"

- name: Publish Artifacts to GitHub
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
with:
name: output
path: _output/**

- name: Login to Upbound
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
if: env.XPKG_ACCESS_ID != ''
with:
registry: xpkg.upbound.io
username: ${{ secrets.XPKG_ACCESS_ID }}
password: ${{ secrets.XPKG_TOKEN }}

- name: Publish Artifacts
if: env.XPKG_ACCESS_ID != ''
run: make -j2 publish BRANCH_NAME=${GITHUB_REF##*/}
4 changes: 2 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ on:

jobs:
create-tag:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Create Tag
uses: negz/create-tag@39bae1e0932567a58c20dea5a1a0d18358503320 # v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
name: runner / yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: yamllint
uses: reviewdog/action-yamllint@4e4ba96d03a0e12a0e71c29e5fef1db309d09201 # v1.18.0
uses: reviewdog/action-yamllint@1dca3ad811867be18fbe293a9818d715a6c2cd46 # v1.20.0
with:
reporter: github-pr-review
filter_mode: nofilter
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "build"]
path = build
url = https://github.com/crossplane/build
url = https://github.com/crossplane/build.git
Loading

0 comments on commit fac3d5d

Please sign in to comment.