1 Commits
dev ... v2.0.2

Author SHA1 Message Date
dcabe8f814 dev (#24)
Some checks failed
ci/woodpecker/release/build_release/1 Pipeline was successful
ci/woodpecker/release/build_release/2 Pipeline was successful
ci/woodpecker/release/build_release/3 Pipeline was successful
ci/woodpecker/release/build_release/4 Pipeline was successful
ci/woodpecker/cron/build_release/1 Pipeline failed
ci/woodpecker/cron/build_release/2 Pipeline failed
ci/woodpecker/cron/build_release/3 Pipeline failed
ci/woodpecker/cron/build_release/4 Pipeline failed
install simplexml and xmlreader
and fix issue with running as none root user
and remove debug pipeline step

Co-authored-by: Ruben Momoa <ruben.lobbes@lobbes.nl>
Reviewed-on: #24
2024-08-29 10:00:02 +02:00
4 changed files with 8 additions and 28 deletions

View File

@@ -1,9 +1,9 @@
matrix:
PHP_VERSION:
- 8.1
- 8.2
- 8.3
- 8
- 8.3
- 8.2
- 8.1
when:
branch:
@@ -44,7 +44,6 @@ steps:
release_alpine_build_and_publish:
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x
username: vistanarvas
password:
from_secret: DOCKERHUB_TOKEN

View File

@@ -5,9 +5,6 @@ FROM php:${BASE_VERSION}-fpm-alpine
# port to for the webserver
ENV WEBSERVER_PORT=8080
# path without leading / (slash)
ENV HEALTHCHECK_PATH=""
COPY start-container.sh /usr/local/bin/start-container
RUN apk add --no-cache \
@@ -35,9 +32,6 @@ RUN apk add --no-cache \
&& docker-php-ext-install filter pdo_mysql \
&& chmod +x /usr/local/bin/start-container
HEALTHCHECK --interval=5m --timeout=3s --start-period=5m --start-interval=10s \
CMD curl -f http://localhost:${WEBSERVER_PORT}/${HEALTHCHECK_PATH} || exit 1
EXPOSE ${WEBSERVER_PORT}
WORKDIR /var/www/html

View File

@@ -3,11 +3,6 @@
# exit when any command fails
set -e
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
fi
# install extra packages and extensions on first boot
if [[ $(id -u) -eq 0 && ! -f /etc/first_boot ]]; then
if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then
@@ -31,9 +26,9 @@ if [[ "$BOOT_NPM_INSTALL" = true ]]; then
npm install --cache /tmp/npm
fi
if [[ "$BOOT_MIGRATE" = true ]]; then
echo "artisan migrate"
php /var/www/html/artisan migrate
if [ ! -f /var/www/html/artisan ]; then
echo "No existing Laravel project found"
exit
fi
if [[ "$BOOT_NPM_DEV" = true ]]; then

View File

@@ -12,22 +12,14 @@ fi
version=$1
# Suffix
suffix=""
if [[ -n $2 ]]; then
suffix="-$2"
fi
touch tags.txt
if [[ "$2" = "php-8" ]]; then
echo "latest" >> tags.txt
fi
[[ -n $2 ]] && suffix="-$2" || suffix=""
# Check if the first character is "V" or "v" and remove it
if [[ "${version:0:1}" == "V" || "${version:0:1}" == "v" ]]; then
version="${version#?}"
fi
echo "latest$suffix" >> tags.txt
echo "latest$suffix" > tags.txt
echo "$version" | cut -d'.' -f1 | xargs -I {} echo "{}$suffix" >> tags.txt
echo "$version" | cut -d'.' -f1,2 | xargs -I {} echo "{}$suffix" >> tags.txt
echo "$version" | cut -d'.' -f1,2,3 | xargs -I {} echo "{}$suffix" >> tags.txt