Skip to content

Commit

Permalink
Merge pull request #182 from stefanprodan/helm-oci
Browse files Browse the repository at this point in the history
Published signed Helm charts to GHCR
  • Loading branch information
stefanprodan authored Mar 30, 2022
2 parents 9febc66 + 5c1032c commit 8508550
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
helm-version:
- 3.6.0
- 3.8.1
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
- uses: actions/checkout@v2
- uses: imjasonh/[email protected]
- uses: sigstore/cosign-installer@main
- name: Setup Helm
uses: ./.github/actions/helm
with:
version: 3.8.1
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
Expand Down Expand Up @@ -64,13 +68,19 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ steps.prep.outputs.VERSION }}
org.opencontainers.image.created=${{ steps.prep.outputs.BUILD_DATE }}
- name: Publish Helm chart to GHCR
run: |
helm build charts/podinfo
helm push podinfo-${{ steps.prep.outputs.VERSION }}.tgz oci://ghcr.io/stefanprodan/charts
rm podinfo-${{ steps.prep.outputs.VERSION }}.tgz
- name: Sign images
env:
COSIGN_EXPERIMENTAL: 1
run: |
cosign sign docker.io/stefanprodan/podinfo:${{ steps.prep.outputs.VERSION }}
cosign sign docker.io/stefanprodan/podinfo:latest
cosign sign ghcr.io/stefanprodan/podinfo:${{ steps.prep.outputs.VERSION }}
cosign sign ghcr.io/stefanprodan/charts/podinfo:${{ steps.prep.outputs.VERSION }}
- name: Publish base image
uses: docker/build-push-action@v2
with:
Expand Down Expand Up @@ -108,6 +118,6 @@ jobs:
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --release-notes=/tmp/release.txt
args: release --release-notes=/tmp/release.txt --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ To access the Swagger UI open `<podinfo-host>/swagger/index.html` in a browser.

### Install

Helm:
#### Helm

Install from github.io:

```bash
helm repo add podinfo https://stefanprodan.github.io/podinfo
Expand All @@ -95,13 +97,20 @@ helm upgrade --install --wait backend \
podinfo/podinfo
```

Kustomize:
Install from ghcr.io:

```bash
helm upgrade --install --wait podinfo --namespace default \
oci://ghcr.io/stefanprodan/charts/podinfo
```

#### Kustomize

```bash
kubectl apply -k github.com/stefanprodan/podinfo//kustomize
```

Docker:
#### Docker

```bash
docker run -dp 9898:9898 stefanprodan/podinfo
Expand Down

0 comments on commit 8508550

Please sign in to comment.