add script to build docker image
This commit is contained in:
parent
73fc2e6ab9
commit
1b2502f3b6
1 changed files with 14 additions and 0 deletions
14
build-container-image.sh
Executable file
14
build-container-image.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Reseting invidious-companion repository (git reset --hard origin/HEAD)"
|
||||
sh -c './reset-companion-repo.sh'
|
||||
echo "Applying patches (git am ../patches/*.patch)"
|
||||
sh -c './apply-patches.sh'
|
||||
echo "Building container image"
|
||||
|
||||
docker_cmd='docker buildx build ./invidious-companion'
|
||||
if eval "$docker_cmd"; then
|
||||
echo "Done"
|
||||
else
|
||||
echo "Failed to execute $docker_cmd"
|
||||
fi
|
Loading…
Add table
Reference in a new issue