-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): trim more the image, always run setup (#2491)
This allows to simplify the custom entrypoints command a little bit
- Loading branch information
Showing
6 changed files
with
35 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,7 +239,9 @@ jobs: | |
- name: Extract built client from Docker image 🗜️ | ||
run: | | ||
docker load < docker_image.tar | ||
docker cp $(docker create --name jf $(docker images --filter=reference='${{ env.REGISTRY_IMAGE }}' -q | head -n 1)):/usr/share/nginx/html/ ./dist | ||
IMAGE_SHA=$(docker images --filter=reference='${{ env.REGISTRY_IMAGE }}' -q | head -n 1) | ||
ASSETS=$(docker inspect $IMAGE_SHA --format='{{range .Config.Env}}{{println .}}{{end}}' | grep ^ASSETS= | cut -d '=' -f2-) | ||
docker cp $(docker create --name jf $IMAGE_SHA):$ASSETS/ ./dist | ||
- name: Create provenance attestation 🔏 | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#!/bin/sh | ||
|
||
## If the command has not been replaced by the user (i.e docker run image /bin/sh), | ||
## follow through the setup process | ||
if [[ "$*" = "nginx -g daemon off;" ]]; then | ||
echo "==== Starting Jellyfin Vue setup ====" | ||
echo | ||
/setup.sh | ||
echo | ||
echo "==== Setup finished! ====" | ||
echo -e "\n" | ||
fi | ||
echo "==== Starting Jellyfin Vue setup ====" | ||
echo | ||
/setup.sh | ||
echo | ||
echo "==== Setup finished! ====" | ||
echo | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters