diff --git a/.github/workflows/go_docker_build.yaml b/.github/workflows/go_docker_build.yaml index 226a905..3ea36e1 100644 --- a/.github/workflows/go_docker_build.yaml +++ b/.github/workflows/go_docker_build.yaml @@ -68,24 +68,24 @@ jobs: DIGEST: ${{ steps.build-and-push.outputs.digest }} run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} - # - name: Dokploy Deployment - # if: github.ref == 'refs/heads/main' && github.event_name == 'push' - # run: | - # response=$(curl -X 'POST' \ - # "$DOKPLOY_URL/api/application.deploy" \ - # -H 'accept: application/json' \ - # -H 'Content-Type: application/json' \ - # -H "x-api-key: $DOKPLOY_AUTH_TOKEN" \ - # -d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \ - # -w "%{http_code}" \ - # -o /dev/null \ - # -s) + - name: Dokploy Deployment + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + run: | + response=$(curl -X 'POST' \ + "$DOKPLOY_URL/api/application.deploy" \ + -H 'accept: application/json' \ + -H 'Content-Type: application/json' \ + -H "x-api-key: $DOKPLOY_AUTH_TOKEN" \ + -d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \ + -w "%{http_code}" \ + -o /dev/null \ + -s) - # if [ "$response" -ne 200 ]; then - # echo "Deployment failed with status code: $response" - # exit 1 - # fi - # env: - # DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }} - # DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }} - # DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }} \ No newline at end of file + if [ "$response" -ne 200 ]; then + echo "Deployment failed with status code: $response" + exit 1 + fi + env: + DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }} + DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }} + DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }} \ No newline at end of file diff --git a/frontend/templates/navbar.templ b/frontend/templates/navbar.templ index 42fc24a..755b971 100644 --- a/frontend/templates/navbar.templ +++ b/frontend/templates/navbar.templ @@ -21,6 +21,7 @@ templ NavBar(authenticated bool) {
  • Create categories
  • Uploads some notes!
  • Review time :)
  • +
  • Watch the demo
  • Status Page
  • diff --git a/frontend/templates/navbar_templ.go b/frontend/templates/navbar_templ.go index 4890b1b..2022473 100644 --- a/frontend/templates/navbar_templ.go +++ b/frontend/templates/navbar_templ.go @@ -29,7 +29,7 @@ func NavBar(authenticated bool) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
    All systems operational View details
    StudyLlama
    ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
    All systems operational View details
    ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }