new alpine
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Aleksander Cynarski 2022-01-29 21:50:38 +01:00
parent c199459170
commit e2a7e22b0f
Signed by: paramah
GPG Key ID: C4340BA42B9C173A
2 changed files with 38 additions and 56 deletions

View File

@ -12,7 +12,7 @@ steps:
repo: repo:
from_secret: hub_repo from_secret: hub_repo
build_args: build_args:
- PHP_VERSION=8.1-rc-fpm-alpine3.13 - PHP_VERSION=8.1-rc-fpm-alpine3.15
tags: 8.1-rc-alpine tags: 8.1-rc-alpine
when: when:
branch: branch:
@ -29,7 +29,7 @@ steps:
repo: repo:
from_secret: hub_repo from_secret: hub_repo
build_args: build_args:
- PHP_VERSION=8-fpm-alpine3.13 - PHP_VERSION=8-fpm-alpine3.15
tags: 8.0-alpine tags: 8.0-alpine
when: when:
branch: branch:
@ -46,43 +46,43 @@ steps:
repo: repo:
from_secret: hub_repo from_secret: hub_repo
build_args: build_args:
- PHP_VERSION=7.4-fpm-alpine3.13 - PHP_VERSION=7.4-fpm-alpine3.15
tags: 7.4-alpine tags: 7.4-alpine
when: when:
branch: branch:
- master - master
depends_on: [ clone ] depends_on: [ clone ]
- name: php7.3 # - name: php7.3
image: techknowlogick/drone-docker # image: techknowlogick/drone-docker
settings: # settings:
username: # username:
from_secret: hub_username # from_secret: hub_username
password: # password:
from_secret: hub_password # from_secret: hub_password
repo: # repo:
from_secret: hub_repo # from_secret: hub_repo
build_args: # build_args:
- PHP_VERSION=7.3-fpm-alpine3.13 # - PHP_VERSION=7.3-fpm-alpine3.13
tags: 7.3-alpine # tags: 7.3-alpine
when: # when:
branch: # branch:
- master # - master
depends_on: [ clone ] # depends_on: [ clone ]
- name: php7.2 # - name: php7.2
image: techknowlogick/drone-docker # image: techknowlogick/drone-docker
settings: # settings:
username: # username:
from_secret: hub_username # from_secret: hub_username
password: # password:
from_secret: hub_password # from_secret: hub_password
repo: # repo:
from_secret: hub_repo # from_secret: hub_repo
build_args: # build_args:
- PHP_VERSION=7.2-fpm-alpine3.12 # - PHP_VERSION=7.2-fpm-alpine3.12
tags: 7.2-alpine # tags: 7.2-alpine
when: # when:
branch: # branch:
- master # - master
depends_on: [ clone ] # depends_on: [ clone ]

View File

@ -1,33 +1,15 @@
#!/bin/bash #!/bin/bash
# echo "=>>>>>>>>> Actual environment: ${ENVIRONMENT}"
# Helper functions
#
declare -i term_width=80
h1() {
declare border padding text
border='\e[1;34m'"$(printf '=%.0s' $(seq 1 "$term_width"))"'\e[0m'
padding="$(printf ' %.0s' $(seq 1 $(((term_width - $(wc -m <<<"$*")) / 2))))"
text="\\e[1m$*\\e[0m"
echo -e "$border"
echo -e "${padding}${text}${padding}"
echo -e "$border"
}
h2() {
printf '\e[1;33m==>\e[37;1m %s\e[0m\n' "$*"
}
h1 "Actual environment: ${ENVIRONMENT}"
if [[ $ENVIRONMENT != 'production' ]]; then if [[ $ENVIRONMENT != 'production' ]]; then
echo "==============================>> Install phpunit"
wget -O phpunit https://phar.phpunit.de/phpunit-9.phar wget -O phpunit https://phar.phpunit.de/phpunit-9.phar
install phpunit /usr/local/bin install phpunit /usr/local/bin
fi fi
if [[ $ENVIRONMENT == 'development' ]]; then if [[ $ENVIRONMENT == 'development' ]]; then
h2 "Install xdebug" echo "==============================>> Install xdebug"
apk --update --no-cache add autoconf g++ make apk --update --no-cache add autoconf g++ make
pecl install -f xdebug pecl install -f xdebug
docker-php-ext-enable xdebug docker-php-ext-enable xdebug