From d3d39b3e1716615116807cfc1c70199e6ba520ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 3 Mar 2015 20:35:42 +0100 Subject: [PATCH] s3 sync working finally --- wercker.yml | 53 ++++++++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/wercker.yml b/wercker.yml index 058e286ac63..757ca838fca 100644 --- a/wercker.yml +++ b/wercker.yml @@ -9,38 +9,33 @@ build: steps: # Workspace - setup-go-workspace - # - script: - # name: build setup - # code: | - # go run build.go setup - # # Build the project - # - script: - # name: build - # code: | - # go run build.go clean test build - # # frontend - # - npm-install - # - grunt: - # tasks: release - # # create packages - # - script: - # name: create packages - # code: | - # sudo gem install fpm - # sudo apt-get update - # sudo apt-get install -y rpm - # go run build.go package - # # save packages - # - script: - # name: copy output - # code: |- - # rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR" - # + - script: + name: build setup + code: | + go run build.go setup + # Build the project + - script: + name: build + code: | + go run build.go clean test build + # frontend + - npm-install + - grunt: + tasks: release + # create packages - script: name: create packages code: | - mkdir -p $WERCKER_ROOT/dist - echo test > $WERCKER_ROOT/dist/my_file.txt + sudo gem install fpm + sudo apt-get update + sudo apt-get install -y rpm + go run build.go package + # save packages + - script: + name: copy output + code: |- + cp $WERCKER_SOURCE_DIR/dist $WERCKER_ROOT + rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR" - s3sync: key-id: $AWS_S3_KEY