ci/cd for web sites

gitlab | runner | ci/cd ansible | ci/cd www | ci/cd laravel | ci/cd react | sast

setup

on the runner

which rsync
cd /var/www/
mkdir catch-all/
chown runner:users catch-all/

additional notes

this might be required for the CI/CD builds

on the runner system as root

    ver=8.1
    wget https://packages.sury.org/php/apt.gpg -O /etc/apt/trusted.gpg.d/php.gpg
    echo "deb https://packages.sury.org/php/ `lsb_release -sc` main" > /etc/apt/sources.list.d/php.list
    apt update && apt install php$ver-{redis,mongodb}
    systemctl stop apache2
    systemctl disable apache2

    cd /root/
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    ls -lF /usr/local/bin/composer

as user

    su - gitlab-runner

    composer -v

resources

composer

https://getcomposer.org/download/

https://tecadmin.net/how-to-install-and-use-php-composer-on-debian-11/

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-20-04

https://www.hostinger.com/tutorials/how-to-install-composer


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun