Skip to content

Commit

Permalink
CI deployment for Bitbucket pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MariuszJozala-Avaleo committed Apr 7, 2018
1 parent 2d59d63 commit fac457d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ci-deploy/bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
image: jguyomard/hugo-builder:latest

# Note: You have to define SSH_PORT and SSH_HOSTDEST with bitbucket environment variables and add SSH key to the pipeline configuration.

pipelines:
default:
- step:
name: Build and minify files
script:
- hugo
- minify -r -o public/ public/
artifacts:
- public/**
- step:
name: Deploy with rsync to remote server
deployment: production
script:
- rsync -rv -e "ssh -p $SSH_PORT" public/ "$SSH_HOSTDEST" --checksum

0 comments on commit fac457d

Please sign in to comment.