Skip to content

Commit

Permalink
helm builing
Browse files Browse the repository at this point in the history
  • Loading branch information
jgz committed Sep 26, 2021
1 parent 3872475 commit 74d5317
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ghcr-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ jobs:
echo "$GITHUB_CONTEXT" \
echo "$STEPS"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.7.0

# Update the charts with the values from .env and the current job
- name: Update Charts
- name: Package Chart
env:
VERSION: ${{ steps.meta.outputs.version }}
REPO: ${{ steps.dotenv.outputs.repo }}
Expand All @@ -81,21 +86,21 @@ jobs:
sed -i "s/REPO/$REPO/g" chart/values.yaml
sed -i "s?PROJECT_HOST?$HOST?g" chart/values.yaml
sed -i "s?REGISTRY?$REGISTRY?g" chart/values.yaml
cat chart/values.yaml
sed -i "s/PROJECT_NAME/$NAME/g" chart/Chart.yaml
sed -i "s/RELEASE_VERSION/$VERSION/g" chart/Chart.yaml
cat chart/Chart.yaml
TMPDIR=/tmp/helm-package/$NAME
mkdir -p $TMPDIR
mkdir -p charts/$NAME
cp -r ../chart/* $TMPDIR
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.7.0
helm package $TMPDIR -d charts/$NAME

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: chart
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

Expand Down

0 comments on commit 74d5317

Please sign in to comment.