apps/web/Dockerfile invokes scripts/docker-link-repos.sh and scripts/docker-package.sh directly (no bash prefix) - without +x this fails immediately on any fresh clone/full rebuild. The same bug also affects fetchdep.sh, get-version-from-git.sh, layered.sh, normalize-version.sh, and playwright-common/playwright-screenshots.sh, all invoked directly the same way by this repo's own GitHub Actions workflows (build.yml, tests.yml, static_analysis.yaml, docs.yml) - so this was also silently breaking CI, not just Docker builds.
22 lines
608 B
Bash
Executable File
22 lines
608 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
|
|
DIR=$(dirname "$0")
|
|
|
|
# If the branch comes out as HEAD then we're probably checked out to a tag, so if the thing is *not*
|
|
# coming out as HEAD then we're on a branch. When we're on a branch, we want to resolve ourselves to
|
|
# a few SHAs rather than a version.
|
|
if [[ $BRANCH != HEAD && ! $BRANCH =~ heads/v.+ ]]
|
|
then
|
|
DIST_VERSION=$("$DIR"/get-version-from-git.sh)
|
|
else
|
|
DIST_VERSION=$(git describe --abbrev=0 --tags)
|
|
fi
|
|
|
|
DIST_VERSION=$("$DIR"/normalize-version.sh "$DIST_VERSION")
|
|
|
|
VERSION=$DIST_VERSION pnpm --dir apps/web build
|