kubero-dev / kubero

A free and self-hosted PaaS for Kubernetes
https://demo.kubero.dev
GNU General Public License v3.0
2.62k stars 102 forks source link

Add hugo builder to buildpacks #107

Closed jfmatth closed 1 year ago

jfmatth commented 1 year ago

Would love to have Hugo as a buildpack for Kubero.

you already have the buildpack, just need to add it to the API for pulldown :)

mms-gianni commented 1 year ago

I had to check first. But you are right. This is missing in the default configuration.

mms-gianni commented 1 year ago

@jfmatth it merged now. In order to use it on your site, you will need to update your kubero UI configmap and add this snippet :

      - name: Hugo
        language: GoLang
        fetch:
          repository: ghcr.io/kubero-dev/buildpacks/fetch
          tag: main
        build:
          repository: klakegg/hugo
          tag: latest
          command: hugo -D
        run:
          repository: caddy
          tag: latest
          command: caddy file-server --listen :8080 --root /app/public
jfmatth commented 1 year ago

Hmm, weird, I tried editing it and it won't stay? Doesn't give me an error but I add it and it gets removed. Any ideas?

mms-gianni commented 1 year ago

Sorry my bad. You need it to edit in the CRD

kubectl edit kuberoes.application.kubero.dev -n kubero

jfmatth commented 1 year ago

DOOH 🤦

Same issue, weird.

mms-gianni commented 1 year ago

Make sure, you haven't edited the status part.

jfmatth commented 1 year ago

Didn't, still won't save :(

Can i just reinstall the CRD?

mms-gianni commented 1 year ago

yes