Commit d3d39b3e by Torkel Ödegaard

s3 sync working finally

parent 3fd2f87b
...@@ -9,38 +9,33 @@ build: ...@@ -9,38 +9,33 @@ build:
steps: steps:
# Workspace # Workspace
- setup-go-workspace - setup-go-workspace
# - script: - script:
# name: build setup name: build setup
# code: | code: |
# go run build.go setup go run build.go setup
# # Build the project # Build the project
# - script: - script:
# name: build name: build
# code: | code: |
# go run build.go clean test build go run build.go clean test build
# # frontend # frontend
# - npm-install - npm-install
# - grunt: - grunt:
# tasks: release tasks: release
# # create packages # 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: - script:
name: create packages name: create packages
code: | code: |
mkdir -p $WERCKER_ROOT/dist sudo gem install fpm
echo test > $WERCKER_ROOT/dist/my_file.txt 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: - s3sync:
key-id: $AWS_S3_KEY key-id: $AWS_S3_KEY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment