Skip to content

Commit

Permalink
feat: add defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbaehler committed Oct 14, 2023
1 parent 31492c6 commit 8cea65f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ jobs:
run: |
GIT_TAG=${GITHUB_REF##*/}
VERSION=${GIT_TAG##v}
echo "::set-output name=version::$(echo $VERSION)"
echo "version=$(echo $VERSION)" >> $GITHUB_OUTPUT
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v2.2.0'
- name: Signing Keys

- name: CoSign | Signing Keys
run: |
echo '${{ secrets.COSIGN_PRIVATE_KEY }}' > cosign.key
- name: Publish Helm chart
echo '${{ secrets.COSIGN_PUBLIC_KEY }}' > cosign.pub
- name: Helm | Publish
id: helm_publish
uses: oliverbaehler/helm-oci-chart-releaser@main
with:
Expand All @@ -48,9 +52,6 @@ jobs:
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin ghcr.io
- name: CoSign | Public Key
run: echo '${{ secrets.COSIGN_PUBLIC_KEY }}' > cosign.pub

- name: CoSign | Sign
env:
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2
- uses: sigstore/[email protected]
- uses: anchore/sbom-action/[email protected]
- name: ghcr-login
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v1
Expand All @@ -33,9 +32,10 @@ jobs:
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v2.2.0'
- name: Install signing key
- name: CoSign | Signing Keys
run: |
echo '${{ secrets.COSIGN_PRIVATE_KEY }}' > cosign.key
echo '${{ secrets.COSIGN_PUBLIC_KEY }}' > cosign.pub
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ hack/dev/cloudflare-api.yaml
cover.out

# cosign
cosign.key
cosign.key
cosign.pub
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FROM gcr.io/distroless/static:nonroot
COPY cloudflare-tunnel-ingress-controller /cloudflare-tunnel-ingress-controller
LABEL org.opencontainers.image.source=https://github.com/oliverbaehler/cloudflare-tunnel-ingress-controller
WORKDIR /åå
WORKDIR /
USER nonroot:nonroot

ENTRYPOINT ["/cloudflare-tunnel-ingress-controllåer"]
ENTRYPOINT ["/cloudflare-tunnel-ingress-controller"]

0 comments on commit 8cea65f

Please sign in to comment.