Skip to content

Run Laravel Vapor commands with github actions, supporting vapor CI integration and up to date PHP.

License

Notifications You must be signed in to change notification settings

bredmor/vapor-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Vapor Action

GitHub Release License

GitHub Actions for Laravel Vapor. Uses the latest bredmor/laradocker image for CI - Ubuntu@latest with PHP 8.0 and Node 14.

Usage

Via GitHub Workflow

Prepare

  1. Generate a Vapor API Token under https://vapor.laravel.com/app/account/api-tokens
  2. Add it as a secret variable to your project under https://github.com/{username}/{project}/settings/secrets

Example Github Action

Add a new workflow under .github/workflows (e.g. push.yaml) to your repository to enable this Action.

You can find out more about under https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobs

name: CI
on:
  push:
    branches:
      - beta
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Deploy to staging
      uses: bredmor/vapor-action@master
      env:
        VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
      with:
        args: deploy staging

Vapor CI Integration Helper

Auto-inserts commit hash and git ref for slack messages, emails, etc.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Run Laravel Vapor commands with github actions, supporting vapor CI integration and up to date PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 69.9%
  • Dockerfile 30.1%