OskarStark / symfony-cloud-ga

A GithubAction to use the Symfony CLI binary to deploy to SymfonyCloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GithubAction for SymfonyCloud

ATTENTION

This is currently a POC which is NOT working right now!

Usage

You can use it as a Github Action like this:

.github/workflows/deploy.yml

on: [push, pull_request]
name: Deploy
jobs:
  symfony-cloud:
    name: SymfonyCloud
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: SymfonyCloud
      uses: docker://oskarstark/symfony-cloud-ga
      with:
        args: deploy
      env:
        # Get your token here: https://symfony.com/account/security
        # More infos: https://symfony.com/doc/master/cloud/cookbooks/api_tokens.html
        SYMFONY_TOKEN: ${{ secrets.SYMFONY_TOKEN }}

        # This is needed to link the correct project.
        # Get it via: symfony project:info command
        SYMFONY_PROJECT: xxxxxxxxxxxxx

You can copy/paste the .github folder (under examples/) to your project and thats all!

Docker

A Docker-Image is built automatically and located here: https://hub.docker.com/r/oskarstark/symfony-cloud-ga

You can run it in any given directory like this:

docker run --rm -it -w=/app -v ${PWD}:/app oskarstark/symfony-cloud-ga:latest deploy

About

A GithubAction to use the Symfony CLI binary to deploy to SymfonyCloud


Languages

Language:Dockerfile 51.1%Language:Shell 48.9%