fix: convert from long RUN statements to a setup.sh script
#31
build_pull_request.yml
on: pull_request
Lint Dockerfile
6s
check_build
58s
Annotations
5 errors
|
Lint Dockerfile:
Dockerfile#L77
SC3040 warning: In POSIX sh, set option pipefail is undefined.
|
|
Lint Dockerfile:
Dockerfile#L77
DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
|
|
Lint Dockerfile:
Dockerfile#L44
SC3040 warning: In POSIX sh, set option pipefail is undefined.
|
|
Lint Dockerfile:
Dockerfile#L27
SC3040 warning: In POSIX sh, set option pipefail is undefined.
|
|
check_build
buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c <<EORUN /bin/bash\nset -xeuo pipefail\nLB_TARBALL_URL=\"https://api.github.com/repos/LibreBooking/librebooking/tarball/${APP_GH_REF}\"\ncurl \\\n --fail \\\n --silent \\\n --location ${LB_TARBALL_URL} \\\n| tar --extract --gzip --directory=/var/www/html --strip-components=1\nif [ \"${APP_GH_ADD_SHA}\" = \"true\" ]; then\n LB_SHORT_SHA=\"\"\n # TARBALL_FILENAME will be like the result of a `git describe` For\n # example: 'LibreBooking-librebooking-v4.1.0-126-g6cc8a4c.tar.gz' where\n # 'g6cc8a4c' is the short SHA prefixed with 'g'. So the short SHA is\n # '6cc8a4c'\n TARBALL_FILENAME=$(\\\n curl \\\n --head \\\n --fail \\\n --silent \\\n --show-error \\\n --location ${LB_TARBALL_URL} \\\n | sed -nE 's/.*filename=\"?([^\";]+)\"?.*/\\1/p')\n LB_SHORT_SHA=$(echo \"${TARBALL_FILENAME}\" | sed -E 's/.*-g([0-9a-f]+)\\.tar\\.gz/\\1/')\n if [ -n \"${LB_SHORT_SHA}\" ]; then\n printf '%s\\n' \"${LB_SHORT_SHA}\" > /var/www/html/config/version-suffix.txt\n else\n echo \"ERROR determining the LB_SHORT_SHA value from TARBALL_FILENAME ${TARBALL_FILENAME}\" >&2\n exit 1\n fi\nfi\nif [ -f /var/www/html/composer.json ]; then\n sed \\\n -i /var/www/html/composer.json \\\n -e \"s:\\(.*\\)nickdnk/graph-sdk\\(.*\\)7.0\\(.*\\):\\1joelbutcher/facebook-graph-sdk\\26.1\\3:\"\n composer install\nfi\nsed \\\n -i /var/www/html/database_schema/create-user.sql \\\n -e \"s:^DROP USER ':DROP USER IF EXISTS ':g\" \\\n -e \"s:booked_user:schedule_user:g\" \\\n -e \"s:localhost:%:g\"\nif ! [ -d /var/www/html/tpl_c ]; then\n mkdir /var/www/html/tpl_c\nfi\nmkdir /var/www/html/Web/uploads/reservation\nEORUN" did not complete successfully: exit code: 2
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
LibreBooking~docker~ST8DHP.dockerbuild
Expired
|
69.8 KB |
sha256:a1e799005761d62d31b30ca22d0eb4a9adc54e3ce4de7cace501d1c906e4eae5
|
|