We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f5587b commit 23407b3Copy full SHA for 23407b3
scripts/update_dockerfile.sh
@@ -0,0 +1,15 @@
1
+#!/usr/bin/env bash
2
+
3
+BOOKSTACK_VERSION=$(curl -L \
4
+ -H "Accept: application/vnd.github+json" \
5
+ -H "X-GitHub-Api-Version: 2022-11-28" \
6
+ https://api.github.com/repos/BookstackApp/Bookstack/releases/latest | \
7
+ jq -r .tag_name
8
+)
9
10
+echo "Latest: ${BOOKSTACK_VERSION}. Updating.."
11
12
+sed \
13
+ -i '' \
14
+ -e "s/^ENV BOOKSTACK_VERSION=.*/ENV BOOKSTACK_VERSION=${BOOKSTACK_VERSION}/" \
15
+ Dockerfile
0 commit comments