Skip to content
Merged
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
15 changes: 12 additions & 3 deletions .github/updatecli/helm-appversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ sources:
pattern: ">=v2.0.0"
conditions: {}
targets:
chartVersion:
name: bump appversion
appVersion:
name: bump appVersion
kind: helmchart
spec:
name: charts/steampipe
file: Chart.yaml
key: $.appVersion
versionincrement: patch
sourceid: steampipe
chartVersion:
name: bump chart version
kind: helmchart
spec:
name: charts/steampipe
file: Chart.yaml
key: $.version
sourceid: steampipe
transformers:
- trimprefix: "v"
4 changes: 2 additions & 2 deletions .github/workflows/helm-check-steampipe-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
echo "current_release=$current_release" >> $GITHUB_OUTPUT

- name: Install updatecli
uses: updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e # v3.0.0
uses: updatecli/updatecli-action@7aab164eed4ee3bb279611182ba1e62a3a867640 # v3.1.1

- name: Update steampipe appVersion
run: |
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

- name: Create PR with changes
if: steps.check_changes.outputs.release_changed == 'true'
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
token: ${{ secrets.PAT_GITHUB }}
commit-message: "fix: update steampipe version to ${{ steps.latest_release.outputs.latest_release }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Install Helm
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0

- name: Install helm-unittest plugin
run: helm plugin install https://github.com/helm-unittest/helm-unittest --verify=false
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@
- "charts/steampipe/**"

jobs:
get-version:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.version.outputs.tag }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Get chart version from Chart.yaml
id: version
run: |
VERSION=$(grep '^version:' charts/steampipe/Chart.yaml | awk '{print $2}')
echo "tag=v${VERSION}" >> $GITHUB_OUTPUT

release:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: get-version
permissions:
contents: write
packages: write
Expand All @@ -18,3 +32,4 @@
with:
chart_name: steampipe
charts_dir: charts
tag: ${{ needs.get-version.outputs.tag }}
4 changes: 2 additions & 2 deletions .github/workflows/helm-snapshot-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

- name: Post snapshot diff comment
if: steps.version_changed.outputs.changed == 'true'
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
with:
header: helm-snapshot-check
message: |
Expand All @@ -105,7 +105,7 @@ jobs:

- name: Post no-change comment
if: steps.version_changed.outputs.changed == 'false'
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
with:
header: helm-snapshot-check
message: |
Expand Down
2 changes: 1 addition & 1 deletion charts/steampipe/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: steampipe
description: A Helm chart for Kubernetes to deploy Steampipe
type: application
version: 4.0.0
version: 2.4.1
appVersion: v2.4.1
home: https://github.com/devops-ia/helm-steampipe
sources:
Expand Down
14 changes: 2 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
{
"name": "helm-steampipe",
"version": "1.0.0",
"release": {
"branches": [
"main"
],
"repositoryUrl": "https://github.com/devops-ia/helm-steampipe.git",
"plugins": [
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
}
"private": true
}
Loading