Skip to content

Commit

Permalink
Merge pull request #31 from homeylab/oci-support
Browse files Browse the repository at this point in the history
Oci support
  • Loading branch information
pchang388 authored Dec 14, 2023
2 parents 770bf6b + 415c109 commit 02758bc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,21 @@ jobs:
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true # https://github.com/helm/chart-releaser-action/issues/97
CR_SKIP_EXISTING: true # https://github.com/helm/chart-releaser-action/issues/97
oci:
runs-on: ubuntu-latest
steps:
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.13.1 # default is latest (stable)
# id: install
- name: Helm Registry Login
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Helm Package Charts
run: |
for x in $(ls charts); do make pkg app=${x}; done
- name: Helm Push Charts
run: |
for x in $(ls *.tgz); do make oci_push ${x}; done
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ bookstack_update_dep:
helm repo update bitnami
helm dependency update ${CHART_DIR}/$(app)

## oci
pkg:
helm package ${CHART_DIR}/$(app)

## includes depedency in `$(app)/charts` directory
pkg_with_dep:
helm package ${CHART_DIR}/$(app) -u

oci_push:
helm push $(file) oci://registry-1.docker.io/homeylab

## lint
## replace with `ct lint` once we have json schema file
lint:
Expand Down

0 comments on commit 02758bc

Please sign in to comment.