mtvtd / mtvtd-cli
MTVTD CLI
Installs: 394
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- guzzlehttp/guzzle: ^7.4
- illuminate/http: ^9.0
- laminas/laminas-text: ^2.9
- laravel-zero/framework: ^9.2
- laravel/pint: ^1.2
- mockery/mockery: ^1.4.4
- nunomaduro/termwind: ^1.14
README
This script is used to make deployment of the websites easier and more robust.
Build
php mtvtd app:build mtvtd
- Docs: https://laravel-zero.com/docs/build-a-standalone-application
Setup this package:
composer require mtvtd/mtvtd-cli --dev
php vendor/bin/mtvtd init
- Create Bitbucket Repo Token
- Add tokens within CircleCI environments
- Update/Create .circleci/config.yml
- Create Trigger within CircleCI with name
composer-schedule
CircleCI environment variables:
GIT_USER= BITBUCKET_REPO= BITBUCKET_TOKEN=
Sample .circleci/config.yml
version: 2.1 workflows: composer-schedule: jobs: - composer-update when: and: - equal: [ scheduled_pipeline, << pipeline.trigger_source >> ] - equal: [ "composer-schedule", << pipeline.schedule.name >> ] jobs: composer-update: docker: - image: cimg/php:8.0 steps: - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "composer.lock" }} - v1-dependencies- - run: name: Install Composer Dependecies command: composer install --prefer-dist --no-interaction --no-progress --no-scripts --no-suggest - save_cache: paths: - ./vendor key: v1-dependencies-{{ checksum "composer.lock" }} - run: name: Run Composer Update Script command: php vendor/bin/mtvtd composer:update - run: name: Create Bitbucket PR command: php vendor/bin/mtvtd bitbucket:create-pr hotfix/composer-update master
Create Bitbucket Repo Token
- Ga naar de "Repository settings"
- Ga naar "Access tokens"
- Klik op "Create Repository Access Token"
- Vink aan: Repository Read & Write & Pull Request Read & Write
- Kopieer de Token & User E-mailadres (voor Push)
- Sla deze op in de ENV vars.
Documentation
For full documentation, visit laravel-zero.com.