Skip to content

Commit

Permalink
Finalizing the open-sourcing of the provider (#4)
Browse files Browse the repository at this point in the history
* Create dependabot.yml config

* Improve Readme

* Add submodule

* placeholder for urls

* add submodule checkout to e2e tests

* remove probot settings file

* fix: remove amd64 suffix in crossplane package file

* chore: dummy commit to unblock gh action

* refactor: adapt region of e2e resources now that we run in prod

* retry pipeline with new build_id

* fix: update schema for subaccount api and ignore unknown properties

* fix: publish step

* fix: goreleaser config

* improve readme

* change: registry to ghcr

* temp: disable e2e tests for faster testing

* remove outdated pipelines

* pipelines remove workflow_dispatch if not needed

* update: readme url to docker package

* refactor: change group for oidc package to new scheme

* Update README.md

Co-authored-by: Tobias <[email protected]>

* Update README.md

Co-authored-by: Tobias <[email protected]>

* Update README.md

Co-authored-by: Tobias <[email protected]>

* Update README.md

Co-authored-by: Tobias <[email protected]>

* chire: enable e2e test again for release

---------

Co-authored-by: Stephan Discher <[email protected]>
Co-authored-by: Tobias <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent f97a95e commit 924ac4f
Show file tree
Hide file tree
Showing 77 changed files with 927 additions and 358 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
144 changes: 0 additions & 144 deletions .github/settings.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/bump-version.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/workflows/command_dispatch.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/make-reviewable.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write
packages: write

jobs:
run-go-license-check:
Expand Down Expand Up @@ -110,8 +111,8 @@ jobs:
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.TEST_REGISTRY_USER }}
password: ${{ secrets.TEST_REGISTRY_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Artifacts to DockerHub
run: make publish BRANCH_NAME=${GITHUB_REF##*/}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reuse-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name: REUSE Compliance Check

on:
workflow_dispatch:
workflow_call:


Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reviewable_check_diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
name: Reviewable&Check-Diff

on:
workflow_dispatch:
workflow_call:

env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: Unit Tests

on:
workflow_dispatch:
workflow_call:

jobs:
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/update-repository-settings.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ __debug_bin
/examples/sample/certs.sh
crossplane-provider-btp-account.iml
/test/e2e/testdata/secrets

dist/
29 changes: 29 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2

builds:
- id: binary-build
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
main: ./cmd/provider
flags:
- -trimpath
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: "386"
binary: "{{ .ProjectName }}_v{{ .Version }}"
archives:
- format: zip
builds:
- binary-build
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
changelog:
use: github-native
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,16 @@ generate-test-crs:
envsubst < "$$template" > "$${template}.tmp" && mv "$${template}.tmp" "$$template"; \
done' sh {} +
@echo crs generated


PUBLISH_IMAGES ?= crossplane/provider-btp crossplane/provider-btp-controller

.PONY: publish
publish:
@$(INFO) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"
@for image in $(PUBLISH_IMAGES); do \
echo "Publishing image $(DOCKER_REGISTRY)/$${image}:$(VERSION)"; \
docker push $(DOCKER_REGISTRY)/$${image}:$(VERSION); \
done
@$(OK) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"

Loading

0 comments on commit 924ac4f

Please sign in to comment.