Skip to content

Commit

Permalink
Change CI related files (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Persimmonboy authored Jul 18, 2024
1 parent 1e6e40e commit 463a1a9
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: automerge

on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
check_suite:
types:
- completed
status: {}

jobs:
automerge:
runs-on: ubuntu-latest
if: >
contains(github.event.pull_request.labels.*.name, 'gate')
environment: github
steps:
- name: Create GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_KEY }}

- id: automerge
name: automerge
uses: pascalgn/automerge-action@v0.16.3
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
MERGE_LABELS: "gate"
MERGE_METHOD: "squash"
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,14 @@ jobs:

- name: Publish Artifacts
run: make publish BRANCH_NAME=${GITHUB_REF##*/}

eco_check:
name: eco/check
if: always()
needs: [detect-noop, report-breaking-changes, lint, check-diff, unit-tests, local-deploy, publish-artifacts]
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ GO_SUBDIRS += cmd internal apis
# Setup Kubernetes tools

KIND_VERSION = v0.15.0
UP_VERSION = v0.18.0
UP_VERSION = v0.28.0
UP_CHANNEL = stable
UPTEST_VERSION = v0.5.0
-include build/makelib/k8s_tools.mk

# ====================================================================================
# Setup Images

REGISTRY_ORGS ?= xpkg.upbound.io/upbound
REGISTRY_ORGS ?= xpkg.upbound.io/opentelekomcloud
IMAGES = $(PROJECT_NAME)
-include build/makelib/imagelight.mk

# ====================================================================================
# Setup XPKG

XPKG_REG_ORGS ?= xpkg.upbound.io/upbound
XPKG_REG_ORGS ?= xpkg.upbound.io/opentelekomcloud
# NOTE(hasheddan): skip promoting on xpkg.upbound.io as channel tags are
# inferred.
XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/upbound
XPKG_REG_ORGS_NO_PROMOTE ?= xpkg.upbound.io/opentelekomcloud
XPKGS = $(PROJECT_NAME)
-include build/makelib/xpkg.mk

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ kind: Provider
metadata:
name: provider-opentelekomcloud
spec:
package: opentelekomcloud/provider-opentelekomcloud:v0.1.0
package: xpkg.upbound.io/opentelekomcloud/provider-opentelekomcloud:v0.1.0
EOF
```

Notice that in this example Provider resource is referencing ControllerConfig with debug enabled.

You can see the API reference [here](https://doc.crds.dev/github.com/opentelekomcloud/provider-opentelekomcloud).
You can see the API reference [here](https://marketplace.upbound.io/providers/opentelekomcloud/provider-opentelekomcloud/latest).

## Developing

Expand Down
15 changes: 15 additions & 0 deletions package/crossplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@ apiVersion: meta.pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-opentelekomcloud
annotations:
meta.crossplane.io/maintainer: OTC Ecosystem Squad
meta.crossplane.io/source: github.com/opentelekomcloud/provider-opentelekomcloud
meta.crossplane.io/license: Apache-2.0
meta.crossplane.io/description: |
The OpenTelekomCloud Crossplane provider adds support for
managing OTC resources in Kubernetes.
meta.crossplane.io/readme: |
`provider-opentelekomcloud` is the Crossplane infrastructure provider for [OpenTelekomCloud (OTC)](https://www.open-telekom-cloud.com/).
## Report a Bug
If you encounter any bugs, have suggestions for improvements, or want to request new features, please
open an [issue](https://github.com/opentelekomcloud/provider-opentelekomcloud/issues).

0 comments on commit 463a1a9

Please sign in to comment.