Skip to content

v1 - Initial Release

Compare
Choose a tag to compare
@basantsd basantsd released this 21 Jun 11:30
· 18 commits to main since this release

v1 - Initial Release

Summary

This is the initial release of the Laravel CI/CD Action, a custom GitHub Action designed to automate the CI/CD process for Laravel applications.

Features

  • Dynamic PHP Version: Configure the PHP version to be used during the CI/CD process.
  • Dynamic Deployment Path: Set a custom deployment path on your VPS.
  • Dependency Installation: Automatically install Composer dependencies.
  • Environment Setup: Prepare the Laravel environment by copying the .env file and generating an application key.
  • File Permissions: Set appropriate permissions for storage and cache directories.
  • Deployment: Deploy the application to a VPS using SSH.

Inputs

  • production-branch: The production branch to deploy. Default is production.
  • vps-host: VPS host.
  • vps-username: VPS username.
  • vps-private-key: VPS private key.
  • deploy-path: Deployment path on the VPS. Default is /var/www/html/project_name/.
  • php-version: PHP version to use. Default is 8.0.

Example Usage

name: Laravel CI/CD

on:
  push:
    branches:
      - production

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Laravel CI/CD
      uses: your-username/laravel-ci-cd-action@v1
      with:
        production-branch: 'production'
        vps-host: ${{ secrets.VPS_HOST }}
        vps-username: ${{ secrets.VPS_USERNAME }}
        vps-private-key: ${{ secrets.VPS_PRIVATE_KEY }}
        deploy-path: '/var/www/html/project_name/'
        php-version: '8.0'