Skip to content

Commit 4e361f1

Browse files
authored
Merge pull request #11 from run-llama/clelia/demo-link
feat: add demo link
2 parents 690ab1e + cfd0476 commit 4e361f1

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.github/workflows/go_docker_build.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,24 @@ jobs:
6868
DIGEST: ${{ steps.build-and-push.outputs.digest }}
6969
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
7070

71-
# - name: Dokploy Deployment
72-
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
73-
# run: |
74-
# response=$(curl -X 'POST' \
75-
# "$DOKPLOY_URL/api/application.deploy" \
76-
# -H 'accept: application/json' \
77-
# -H 'Content-Type: application/json' \
78-
# -H "x-api-key: $DOKPLOY_AUTH_TOKEN" \
79-
# -d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \
80-
# -w "%{http_code}" \
81-
# -o /dev/null \
82-
# -s)
71+
- name: Dokploy Deployment
72+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
73+
run: |
74+
response=$(curl -X 'POST' \
75+
"$DOKPLOY_URL/api/application.deploy" \
76+
-H 'accept: application/json' \
77+
-H 'Content-Type: application/json' \
78+
-H "x-api-key: $DOKPLOY_AUTH_TOKEN" \
79+
-d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \
80+
-w "%{http_code}" \
81+
-o /dev/null \
82+
-s)
8383
84-
# if [ "$response" -ne 200 ]; then
85-
# echo "Deployment failed with status code: $response"
86-
# exit 1
87-
# fi
88-
# env:
89-
# DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }}
90-
# DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
91-
# DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}
84+
if [ "$response" -ne 200 ]; then
85+
echo "Deployment failed with status code: $response"
86+
exit 1
87+
fi
88+
env:
89+
DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }}
90+
DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
91+
DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}

frontend/templates/navbar.templ

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ templ NavBar(authenticated bool) {
2121
<li><a href="/categories">Create categories</a></li>
2222
<li><a href="/notes">Uploads some notes!</a></li>
2323
<li><a href="/review">Review time :)</a></li>
24+
<li><a href="https://www.loom.com/share/c12d498a62d941d990b3274b41d1d999">Watch the demo</a></li>
2425
<li><a href="https://monitor.palettify.nl/status/studyllama">Status Page</a></li>
2526
</ul>
2627
</div>

frontend/templates/navbar_templ.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)