Skip to content

A simple tool to automate the deploy with in a SSH server using GIT.

Notifications You must be signed in to change notification settings

williankeller/ssh-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH Deploy

A simple tool to automate the deploy with in a SSH server using GIT.

  • version: 1.0

How do set up?

  • Clone this repository;
  • Copy the file config.bash.dist to config.bash and set up the variables:
    • cp inc/config.bash.dist inc/config.bash

Variables description

  • _DEPLOY_APP_SERVER_DIR - Path inside the server where the script will checkout your git branch or tag.
  • _DEPLOY_SERVER - SSH server address.
  • _DEPLOY_REPO_REMOTE - Remote repository configured in your git, origin is commonly used.
  • _DEPLOY_PROJECT_DIR - Your local repository full path.

How do I use?

  • You can run with a parameter to deploy a specific git tag or branch. Example: ./deploy.sh <branch tag>;
  • Or just run ./deploy.sh, the script will auto create a release tag like: release-DATE), push it and checkout in your server;
  • If the tag already exists the script will increment a number at the end release tag, just like: release-DATE.1.

About

A simple tool to automate the deploy with in a SSH server using GIT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages