-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update release action to auto release kustomize yaml's as assets #1371
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cf4c0a8
update release action to auto release kustomize yaml's as assets
Links2004 b3fb720
Merge branch 'master' into tar.gz_release
NissesSenap e8d156f
remove gh release create and kustomize-base.yaml and add crds.yaml to…
Links2004 09ad974
update docu for yaml files on release page
Links2004 e5c3e81
add note for ArgoCD patch
Links2004 a630959
typo
Links2004 dfc0a29
EOF Newline
Links2004 9420612
fix some headers and add info about argo
NissesSenap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
tags: | ||
- v5.* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
helm: | ||
runs-on: ubuntu-latest | ||
|
@@ -35,7 +38,6 @@ jobs: | |
uses: fluxcd/flux2/[email protected] | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Prepare | ||
run: | | ||
# OCI standard enforces lower-case paths | ||
|
@@ -62,6 +64,14 @@ jobs: | |
--path="./deploy/kustomize" \ | ||
--source="${{ github.event.repository.html_url }}" \ | ||
--revision="${GITHUB_REF_NAME}/${GITHUB_SHA}" | ||
- name: update-kustomize-assert | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
for d in deploy/kustomize/overlays/*/ ; do | ||
kustomize build "$d" > kustomize-$(basename "$d").yaml | ||
done | ||
gh release upload "${{ github.ref_name }}" kustomize-*.yaml deploy/kustomize/base/crds.yaml | ||
|
||
image: | ||
runs-on: ubuntu-latest | ||
|
@@ -99,7 +109,7 @@ jobs: | |
- name: Build and push | ||
run: | | ||
declare -a arr=("quay.io/grafana-operator/grafana-operator" "ghcr.io/${{ github.repository }}" ) | ||
|
||
for i in "${arr[@]}" | ||
do | ||
export KO_DOCKER_REPO=${i} | ||
|
@@ -111,4 +121,3 @@ jobs: | |
--image-label org.opencontainers.image.version=${{ github.ref_name }} \ | ||
--image-label org.opencontainers.image.created=${{ env.BUILD_DATE }} | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally use server side apply instead of replace.
This way the
kubectl.kubernetes.io/last-applied-configuration
isn't created and the CRD don't get too big.But I guess this is individual, maybe we should provide both suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it on my own