Skip to content

Commit

Permalink
fixup! Release binaries with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Mar 11, 2024
1 parent 83dfc76 commit f0b9522
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions distribute/distribute-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ set -euxo pipefail
# make it easier to work from the script
distribute_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"

image_name="visicut-distribution"

docker build -t "$image_name" -f "$distribute_dir"/Dockerfile "$distribute_dir"

extra_args=()
if [[ -t 0 ]]; then
extra_args+=("-t")
fi

# we use VisicutBuilder to ensure compatibility with it
# for instance, it provides a specific NSIS version which is the only one the project can be built with
image_name="registry.gitlab.com/t-oster/visicutbuildservice"

# mount current working directory as /cwd so that the resulting artifacts show up in it
# also mount distribute/'s parent directory so that distribute.sh has access to all the necessary files
# the reason is that we cannot predict where this script is called from but want to avoid any difference in executing
Expand All @@ -29,5 +29,6 @@ docker run \
-v "$distribute_dir/..":/visicut \
--user "$(id -u)" \
--tmpfs "/ramdisk:uid=$(id -u),gid=$(id -g),exec" \
--entrypoint bash \
"$image_name" \
/visicut/distribute/distribute.sh "$@"

0 comments on commit f0b9522

Please sign in to comment.