-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI deployment for Bitbucket pipeline
- Loading branch information
MariuszJozala-Avaleo
committed
Apr 7, 2018
1 parent
2d59d63
commit fac457d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
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 | ||
|