Skip to content

Set up CD

Set up CD #1

Workflow file for this run

name: "Deploy To Server"
on:
push:
branches: [main, dev]
env:
DOKKU_REPO: "ssh://[email protected]:22/rails-backend"
DOKKU_DEPLOY_BRANCH: "main"
permissions: write-all
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to dokku
uses: obrassard/[email protected]
with:
ssh_key: ${{ secrets.SSH_KEY }}
dokku_repo: ${{ env.DOKKU_REPO }}
deploy_branch: ${{ env.DOKKU_DEPLOY_BRANCH }}