Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OriginalFunction/front-end-build-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

front-end-build-server

Docker image for front end CI build server

Sample usage in BitBucket Pipeline for a static site

image: originalfunction/front-end-build-server:latest

pipelines:
  default:
    - step:
        script:
          - cd ./source 
          - npm install
          - bower --allow-root install
          - grunt --force build
          - cd ..
          - echo ${SSH_KEY} | sed 's/\\n /\'$'\n/g' | sed 's/\\n//g' > key.pem
          - chmod 400 key.pem
          - rsync -Prvz ./source/dist/ -e 'ssh -o StrictHostKeyChecking=no -i key.pem' ubuntu@${STAGING_SERVER}:/var/www/site

bitbucket-pipelines.yml

We save the private key in an environment variable and regenerate it temporarily for ssh.

About

Docker image for front end CI build server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors