Skip to content

Commit 924ac4f

Browse files
enrico-kaack-compsdischer-sapShegox
authored
Finalizing the open-sourcing of the provider (#4)
* 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 <github@tobiasgabriel.de> * Update README.md Co-authored-by: Tobias <github@tobiasgabriel.de> * Update README.md Co-authored-by: Tobias <github@tobiasgabriel.de> * Update README.md Co-authored-by: Tobias <github@tobiasgabriel.de> * chire: enable e2e test again for release --------- Co-authored-by: Stephan Discher <stephan.discher@sap.com> Co-authored-by: Tobias <github@tobiasgabriel.de>
1 parent f97a95e commit 924ac4f

File tree

77 files changed

+927
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+927
-358
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "gomod"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/settings.yml

Lines changed: 0 additions & 144 deletions
This file was deleted.

.github/workflows/bump-version.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/command_dispatch.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.github/workflows/make-reviewable.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
# GitHub considers creating releases and uploading assets as writing contents.
2020
permissions:
2121
contents: write
22+
packages: write
2223

2324
jobs:
2425
run-go-license-check:
@@ -110,8 +111,8 @@ jobs:
110111
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
111112
with:
112113
registry: ${{ vars.REGISTRY_URL }}
113-
username: ${{ secrets.TEST_REGISTRY_USER }}
114-
password: ${{ secrets.TEST_REGISTRY_PASSWORD }}
114+
username: ${{ github.actor }}
115+
password: ${{ secrets.GITHUB_TOKEN }}
115116

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

.github/workflows/reuse-scan.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
name: REUSE Compliance Check
44

55
on:
6-
workflow_dispatch:
76
workflow_call:
87

98

.github/workflows/reviewable_check_diff.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
name: Reviewable&Check-Diff
44

55
on:
6-
workflow_dispatch:
76
workflow_call:
87

98
env:

.github/workflows/unit_test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
name: Unit Tests
55

66
on:
7-
workflow_dispatch:
87
workflow_call:
98

109
jobs:

.github/workflows/update-repository-settings.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ __debug_bin
1515
/examples/sample/certs.sh
1616
crossplane-provider-btp-account.iml
1717
/test/e2e/testdata/secrets
18+
19+
dist/

.goreleaser.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Visit https://goreleaser.com for documentation on how to customize this
2+
# behavior.
3+
version: 2
4+
5+
builds:
6+
- id: binary-build
7+
env:
8+
- CGO_ENABLED=0
9+
mod_timestamp: "{{ .CommitTimestamp }}"
10+
main: ./cmd/provider
11+
flags:
12+
- -trimpath
13+
goos:
14+
- linux
15+
- darwin
16+
goarch:
17+
- amd64
18+
- arm64
19+
ignore:
20+
- goos: darwin
21+
goarch: "386"
22+
binary: "{{ .ProjectName }}_v{{ .Version }}"
23+
archives:
24+
- format: zip
25+
builds:
26+
- binary-build
27+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
28+
changelog:
29+
use: github-native

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,3 +274,16 @@ generate-test-crs:
274274
envsubst < "$$template" > "$${template}.tmp" && mv "$${template}.tmp" "$$template"; \
275275
done' sh {} +
276276
@echo crs generated
277+
278+
279+
PUBLISH_IMAGES ?= crossplane/provider-btp crossplane/provider-btp-controller
280+
281+
.PONY: publish
282+
publish:
283+
@$(INFO) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"
284+
@for image in $(PUBLISH_IMAGES); do \
285+
echo "Publishing image $(DOCKER_REGISTRY)/$${image}:$(VERSION)"; \
286+
docker push $(DOCKER_REGISTRY)/$${image}:$(VERSION); \
287+
done
288+
@$(OK) "Publishing images $(PUBLISH_IMAGES) to $(DOCKER_REGISTRY)"
289+

0 commit comments

Comments
 (0)