Skip to content

Commit

Permalink
release helm charts on push
Browse files Browse the repository at this point in the history
CR can decide whether it should be released or not
  • Loading branch information
djeebus committed Dec 15, 2023
1 parent b8d2b1c commit b5cef5e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/on_push_to_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,29 @@ jobs:
suffixes: |
-linux-amd64
# -linux-arm64

release-helm:
runs-on: ubuntu-22.04

permissions:
contents: write

steps:
- name: checkout the source code
uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- name: Build and push the Docker image
run: |
earthly \
--push \
+release-helm \
--HELM_VERSION ${{ env.HELM_VERSION }} \
--CHART_RELEASER_VERSION ${{ env.HELM-CR_TOOL_VERSION }} \
--repo_owner ${{ github.repository_owner }} \
--token ${{ secrets.GITHUB_TOKEN }}
23 changes: 0 additions & 23 deletions .github/workflows/on_release_published.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,6 @@ on:
types: [published]

jobs:
release-helm:
runs-on: ubuntu-22.04

permissions:
contents: write

steps:
- name: checkout the source code
uses: actions/checkout@v3

- uses: wistia/[email protected]

- uses: earthly/actions-setup@v1
with: { version: "v${{ env.EARTHLY_TOOL_VERSION }}" }

- name: Build and push the Docker image
run: |
earthly \
--push \
+release-helm \
--repo_owner ${{ github.repository_owner }} \
--token ${{ secrets.GITHUB_TOKEN }}
release-docker:
runs-on: ubuntu-22.04

Expand Down
3 changes: 2 additions & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
earthly 0.7.14
earthly 0.7.22
golang 1.19.11
helm 3.12.2
helm-cr 1.6.1
helm-ct 3.8.0
kubeconform 0.6.3
kustomize 5.1.0
Expand Down

0 comments on commit b5cef5e

Please sign in to comment.