Skip to content

Commit c37d6b8

Browse files
committed
feat: create script to update Dockerfile
1 parent 483baeb commit c37d6b8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: scripts/update_dockerfile.sh

+15
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)