-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/releasing_of_examples
Signed-off-by: Simon Schrottner <[email protected]>
- Loading branch information
Showing
151 changed files
with
3,094 additions
and
1,428 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
documentation: | ||
- docs/**/* | ||
- "**/*.md" | ||
|
||
operator: | ||
- operator/**/* | ||
|
||
scheduler: | ||
- scheduler/**/* | ||
|
||
metrics-operator: | ||
- metrics-operator/**/* | ||
|
||
cert-manager: | ||
- klt-cert-manager/**/* | ||
|
||
ops: | ||
- .github/**/* | ||
- netlify.toml | ||
- .markdownlint-cli2.yml | ||
|
||
helm: | ||
- helm/**/* |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- "pinned" | ||
- "security" | ||
- "future" | ||
- "help wanted" | ||
- "integrations" | ||
- "known issue" | ||
- "known-limitation" | ||
- "Epic" | ||
- "area:security" | ||
# Set to true to ignore issues in a milestone (defaults to false) | ||
exemptMilestones: true | ||
# Label to use when marking an issue as stale | ||
staleLabel: stale | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: false |
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
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
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
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
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
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 |
---|---|---|
|
@@ -59,7 +59,8 @@ jobs: | |
packages: write | ||
id-token: write | ||
env: | ||
IMAGE_TAG: ghcr.io/keptn/${{ matrix.config.name }}:${{ needs.release-please.outputs.tag_name }} | ||
IMAGE_NAME: ghcr.io/keptn/${{ matrix.config.name }} | ||
IMAGE_TAG: ${{ needs.release-please.outputs.tag_name }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -78,16 +79,17 @@ jobs: | |
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Cosign | ||
uses: sigstore/cosign-installer@v2.8.1 | ||
uses: sigstore/cosign-installer@v3.0.1 | ||
|
||
- name: Build Docker Image | ||
id: docker_build_image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ${{ matrix.config.folder }} | ||
platforms: linux/amd64,linux/arm64 | ||
target: production | ||
tags: | | ||
${{ env.IMAGE_TAG }} | ||
${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} | ||
build-args: | | ||
GIT_HASH=${{ env.GIT_SHA }} | ||
RELEASE_VERSION=dev-${{ env.DATETIME }} | ||
|
@@ -99,15 +101,20 @@ jobs: | |
cache-from: type=gha,scope=${{ github.ref_name }}-${{ matrix.config.name }} | ||
cache-to: type=gha,scope=${{ github.ref_name }}-${{ matrix.config.name }} | ||
|
||
- name: Sign container images | ||
- name: Sign container image | ||
env: | ||
COSIGN_EXPERIMENTAL: 1 | ||
run: cosign sign ${{ env.IMAGE_TAG }} | ||
IMAGE_DIGEST: ${{ steps.docker_build_image.outputs.digest }} | ||
run: | | ||
cosign sign --yes ${{ env.IMAGE_NAME }}@${{ env.IMAGE_DIGEST }} | ||
cosign verify \ | ||
--certificate-identity-regexp="https://github.com/keptn/lifecycle-toolkit/.*" \ | ||
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \ | ||
${{ env.IMAGE_NAME }}@${{ env.IMAGE_DIGEST }} | ||
- name: Generate SBOM | ||
uses: anchore/[email protected] | ||
with: | ||
image: ${{ env.IMAGE_TAG }} | ||
image: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} | ||
artifact-name: sbom-${{ matrix.config.name }} | ||
output-file: ./sbom-${{ matrix.config.name }}.spdx.json | ||
|
||
|
@@ -149,14 +156,14 @@ jobs: | |
key: build-tools-${{ github.ref_name }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Create manifests | ||
env: | ||
RELEASE_REGISTRY: ghcr.keptn.sh/keptn | ||
TAG: ${{ needs.release-please.outputs.tag_name }} | ||
CHART_APPVERSION: ${{ needs.release-please.outputs.tag_name }} | ||
run: | | ||
cd scheduler | ||
make release-manifests | ||
|
@@ -178,7 +185,7 @@ jobs: | |
name: keptn-lifecycle-toolkit-system | ||
--- | ||
EOF | ||
cat operator/config/rendered/release.yaml scheduler/config/rendered/release.yaml klt-cert-manager/config/rendered/release.yaml metrics-operator/config/rendered/release.yaml > manifest.yaml | ||
cat namespace.yaml operator/config/rendered/release.yaml scheduler/config/rendered/release.yaml klt-cert-manager/config/rendered/release.yaml metrics-operator/config/rendered/release.yaml > manifest.yaml | ||
- name: Attach release assets | ||
uses: softprops/action-gh-release@v1 | ||
|
@@ -194,6 +201,7 @@ jobs: | |
with: | ||
tag_name: ${{ needs.release-please.outputs.tag_name }} | ||
uses: ./.github/workflows/release-docs.yml | ||
secrets: inherit | ||
|
||
update-examples: | ||
name: Update examples | ||
|
@@ -203,3 +211,4 @@ jobs: | |
with: | ||
tag_name: ${{ needs.release-please.outputs.tag_name }} | ||
uses: ./.github/workflows/release-examples.yml | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -104,7 +104,7 @@ jobs: | |
steps: | ||
- name: Set up Go | ||
if: matrix.tool == 'kubeconform' | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
|
@@ -192,7 +192,7 @@ jobs: | |
path: images | ||
|
||
- name: Trivy image scan | ||
uses: aquasecurity/[email protected].1 | ||
uses: aquasecurity/[email protected].2 | ||
with: | ||
input: "images/${{ matrix.image }}-image.tar/${{ matrix.image }}-image.tar" | ||
severity: 'CRITICAL,HIGH' | ||
|
@@ -212,7 +212,7 @@ jobs: | |
|
||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
|
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Set PR Labels | ||
|
||
on: | ||
pull_request_target: | ||
jobs: | ||
set-labels: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Update Labels | ||
uses: actions/labeler@v4 | ||
with: | ||
sync-labels: true |
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
Oops, something went wrong.