Skip to content

feat: add docs and chart #6

feat: add docs and chart

feat: add docs and chart #6

Workflow file for this run

name: Build and push image
on:
push:
tags:
- v*
permissions:
contents: read
id-token: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- run: nix build .#docker
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag and Push
env:
GH_IMAGE: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
run: |
IMAGE="$(docker load -i result | awk '{print $3}')"
docker tag "$IMAGE" "$GH_IMAGE"
docker push "$GH_IMAGE"
- uses: Azure/setup-helm@v3
- run: |
VERSION="${GITHUB_REF_NAME#v}"
helm package --version "$VERSION" --app-version "$VERSION" -d pkg/ chart/
helm push ./pkg/*.tgz "oci://ghcr.io/$GITHUB_REPOSITORY_OWNER"