Created
May 23, 2020 21:17
-
-
Save martinusso/08dd81d0b19dddf39df8bd6d890cd1c3 to your computer and use it in GitHub Desktop.
Github Action - Deploy Dokku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy using Dokku | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} # use ssh-keyscan command | |
config: ${{ secrets.CONFIG }} | |
- name: dokku | |
run: | | |
git remote add dokku dokku@${{ secrets.HOST }}:APP_NAME | |
git push dokku master --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment