Created
May 8, 2020 14:14
-
-
Save lorenzosinisi/31dcade87e893506c45b142a83923915 to your computer and use it in GitHub Desktop.
github action to deploy elixir.yaml
This file contains 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: Deployment on master | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy master to your-project.com | |
uses: garygrossgarten/github-action-ssh@release | |
env: | |
USERNAME: root | |
HOST: your-project.com | |
KEY: ${{ secrets.SSH_DEPLOYMENT_KEY }} | |
EXPERTO_SIGNING_SALT: ${{ secrets.PROJECT_SIGNING_SALT }} | |
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE }} | |
EXPERTO_PORT: ${{ secrets.PROJECT_PORT }} | |
MIX_ENV: prod | |
with: | |
script_stop: true | |
host: your-project.com | |
username: root | |
privateKey: ${{ secrets.SSH_DEPLOYMENT_KEY}} | |
command: . ./your-project/deploy.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment