Skip to content

Commit

Permalink
ci: added build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mojixcoder committed Sep 4, 2024
1 parent 9c28b1c commit a2af144
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Helm
uses: azure/setup-helm@v4.2.0
id: install
with:
version: v3.15.4

- name: Login to Docker registry
run: helm registry login registry.hub.docker.com -u mojixcoder -p ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Building charts
run: helm package . --version="${{ env.RELEASE_VERSION }}" --dependency-update

- name: Push to registry
run: helm push redis-cluster-${{ env.RELEASE_VERSION }}.tgz oci://registry.hub.docker.com/mojixcoder
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Helm
uses: azure/setup-helm@v4.2.0
id: install
with:
version: v3.14.4
version: v3.15.4

- name: Setup kubeconform-helm
run: helm plugin install https://github.com/jtyr/kubeconform-helm
Expand Down

0 comments on commit a2af144

Please sign in to comment.