Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 46 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:

env:
# Common versions
GO_VERSION: '1.23'
XPKG_REG_ORGS: "registry.cennso.com/public/forked/crossplane registry.cennso.com/cennso-dev/forked/crossplane"
GOLANGCI_VERSION: 'v2.1.2'
DOCKER_BUILDX_VERSION: 'v0.8.2'
DOCKER_BUILDX_VERSION: "v0.26.1"

jobs:
detect-noop:
Expand All @@ -39,10 +39,9 @@ jobs:
with:
submodules: true

- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Vendor Dependencies
run: make vendor vendor.check
Expand All @@ -63,10 +62,9 @@ jobs:
with:
submodules: true

- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Vendor Dependencies
run: make vendor vendor.check
Expand All @@ -88,10 +86,9 @@ jobs:
- name: Fetch History
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Vendor Dependencies
run: make vendor vendor.check
Expand Down Expand Up @@ -130,10 +127,9 @@ jobs:
- name: Fetch History
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Vendor Dependencies
run: make vendor vendor.check
Expand All @@ -146,4 +142,39 @@ jobs:
BUILD_ARGS: "--load"

- name: Run E2E Tests
run: make e2e USE_HELM3=true
run: make e2e USE_HELM3=true

push-provider:
runs-on: [ubuntu-24.04]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: true
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: ${{ env.DOCKER_BUILDX_VERSION }}
install: true
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_SERVER }}
username: ${{ secrets.CUR_REGISTRY_USERNAME }}
password: ${{ secrets.CUR_REGISTRY_PASSWORD }}
- name: Get version
id: get_version
run: echo "version=0.0.0-$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
- name: Build Helm Charts
run: |
VERSION="${{ steps.get_version.outputs.version }}" make build.all
- name: Push to registry
run: |-
XPKG_REG_ORGS="${{ env.XPKG_REG_ORGS }}" VERSION="${{ steps.get_version.outputs.version }}" make helm.push
env:
# We're using docker buildx, which doesn't actually load the images it
# builds by default. Specifying --load does so.
BUILD_ARGS: "--load"
26 changes: 0 additions & 26 deletions .github/workflows/publish-provider-package.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release
"on":
push:
tags: ["v*.*.*"]
env:
REGISTRY_SERVER: registry.cennso.com
DOCKER_BUILDX_VERSION: "v0.26.1"
XPKG_REG_ORGS: "registry.cennso.com/public/forked/crossplane registry.cennso.com/cennso/forked/crossplane"
jobs:
push-provider:
runs-on: [ubuntu-24.04]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: true
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: ${{ env.DOCKER_BUILDX_VERSION }}
install: true
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- id: get_version
name: Get latest release version number
uses: battila7/get-version-action@v2
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_SERVER }}
username: ${{ secrets.CUR_REGISTRY_USERNAME }}
password: ${{ secrets.CUR_REGISTRY_PASSWORD }}
- name: Build Helm Charts
run: |
VERSION="${{ steps.get_version.outputs.version }}" make build.all
- name: Push to registry
run: |-
XPKG_REG_ORGS="${{ env.XPKG_REG_ORGS }}" VERSION="${{ steps.get_version.outputs.version }}" OCI_REGISTRY=oci://registry.cennso.com/cennso/charts make publish
env:
# We're using docker buildx, which doesn't actually load the images it
# builds by default. Specifying --load does so.
BUILD_ARGS: "--load"
27 changes: 0 additions & 27 deletions .github/workflows/tag.yaml

This file was deleted.

Loading