Skip to content

Instantly share code, notes, and snippets.

@cdxker
Created July 30, 2024 20:38
Show Gist options
  • Save cdxker/60178f852a148e3615f16ddddf3b0ac8 to your computer and use it in GitHub Desktop.
Save cdxker/60178f852a148e3615f16ddddf3b0ac8 to your computer and use it in GitHub Desktop.
Deploy HN UI

Run this, with a different tag name in hn_frontend/frontend

docker build -t trieve/hn-ui:21 . && docker push trieve/hn-ui:21
gcloud container clusters get-credentials --region us-west1-a hackernews
kubectl edit -n hackernews deployments/hackernews

You will be in a vim session and just edit the tag here

      - env:
        - name: VITE_TRIEVE_DATASET_ID
          value: 4284298b-bb52-4061-ba44-cd268c571a75
        - name: VITE_TRIEVE_API_KEY
          value: tr-IeuEU6Ni7JmT73eynHMjcaRXiNsjosBl
        - name: VITE_TRIEVE_API_URL
          value: https://hackernews.withtrieve.com/api
        image: trieve/hn-ui:21

under image: to the new tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment