Skip to content

772424/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 

Repository files navigation

772424 Reusable actions

Usage

Branch deploy

name: deploy

on:
  push:
    branches:
      - "master"

jobs:
  deploy:
    uses: 772424/actions/.github/workflows/deploy-current-branch.yml@main
    with:
      environment: preproduction
      deploy_path: /var/www/preprod.monsite.com
    secrets: inherit

Tag release deploy

name: deploy

on:
  push:
    tags:
      - 'production/*'

jobs:
  deploy:
    uses: 772424/actions/.github/workflows/deploy-tagged-release.yml@main
    with:
      environment: production
      deploy_path: /var/www/monsite.com
    secrets: inherit

Using composer

You can configure your job to use composer install --no-dev after deploying:

jobs:
  deploy:
    uses: 772424/actions/.github/workflows/deploy-current-branch.yml@main
    with:
      environment: production
      deploy_path: /var/www/monsite.com
      use_composer: true
    secrets: inherit

And a specific php version if using php-fpm:

jobs:
  deploy:
    uses: 772424/actions/.github/workflows/deploy-current-branch.yml@main
    with:
      environment: production
      deploy_path: /var/www/monsite.com
      use_composer: true
      php_version: 7.4
    secrets: inherit

Releases

No releases published

Packages

No packages published