vitalyliber / dokku-github-action

Deploy applications to Dokku
https://vitalyliber.com/courses/deploj-prilozhenij-s-dokku
MIT License
78 stars 32 forks source link

enabling setting app configs #15

Closed hdrhmd closed 4 years ago

vitalyliber commented 4 years ago

Hi @hdrhmd =)

Please provide more examples how it would be used?

I don't understand why you can't setup ENVs directly. Because I config ENVs very rarely. Why you need config it before every deploy?

hdrhmd commented 4 years ago

Usage Example:

name: CD

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Dokku deploy
      uses: vitalyliber/dokku-github-action@v4.0
      env:
        PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
        HOST: casply.com
        PROJECT: kawaii
        CONFIG: ${{ secrets.APP_CONFIG }}

Sample APP_CONFIG => STAGE=beta DJANGO_KEY="*****"

I like to deploy configurations through github actions to completely abstract out our deployment platform in this case dokku behind the github actions.