Skip to content

Commit

Permalink
Chaged build script
Browse files Browse the repository at this point in the history
  • Loading branch information
italolelis committed Sep 28, 2016
1 parent 5127118 commit 88384a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions ci/tasks/build-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ image_resource:
source: {repository: golang, tag: "1"}

run:
path: ./ci/tasks/build.sh
dir: api-gateway-master
path: api-gateway-master/ci/tasks/build.sh

inputs:
- name: api-gateway-master
Expand Down
6 changes: 3 additions & 3 deletions ci/tasks/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/sh
set -x

CWD=$(pwd)
DEST=api-gateway

mkdir -p ${PROJECT_SRC}
cp -r . ${PROJECT_SRC}
cd ${PROJECT_SRC}

#build go binary
make

cd /go/bin

echo "* Creating tar.gz"
tar -czf ${DEST}.tar.gz ${DEST} > /dev/null

echo "* copying ${DEST}.tar.gz ${CWD}/artifacts"
cp ${DEST}.tar.gz ${CWD}/artifacts

0 comments on commit 88384a5

Please sign in to comment.