Skip to content

Commit

Permalink
v7.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstah committed Apr 3, 2019
1 parent 26a6cef commit bedb779
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v7.3.0 (27/03/2018)

**New**

* `iam-sync-users`: Manage sudo with IAM tags

## v7.2.0 (26/03/2018)

**New**
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.0
7.3.0
20 changes: 14 additions & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rm -f ${sums_file}*
version=$(cat ${base}/VERSION)
commit=$(git rev-parse --short HEAD)

mac_supported="iam-session kms-env aws-dump ecr-get-login ec2-describe-instances ec2-ip-from-name"

echo "Building ${version} (${commit})"
find ${base} -name "main.go" | while read src; do
Expand All @@ -21,16 +22,23 @@ find ${base} -name "main.go" | while read src; do
fi
fi

name=bin/$(echo ${src} | awk -F/ '{print $1"-"$2}')
fname=$(echo ${src} | awk -F/ '{print $1"-"$2}')
name=bin/${fname}
echo " ${name}"
folder=`dirname ${src}`
if [ ! -f ${folder}/Makefile ]; then
CGO_ENABLED=0 go build -installsuffix cgo -o ${base}/${name} -ldflags="-s -w -X github.com/hamstah/awstools/common.Version=${version} -X github.com/hamstah/awstools/common.CommitHash=${commit}" ${folder}/*.go
gpg --armor --detach-sig ${base}/${name}
CGO_ENABLED=0 go build -installsuffix cgo -o ${base}/${name} -ldflags="-s -w -X github.com/hamstah/awstools/common.Version=${version} -X github.com/hamstah/awstools/common.CommitHash=${commit}" ${folder}/*.go
gpg --armor --detach-sig ${base}/${name}

if [[ ${mac_supported} =~ ${fname} ]]; then
GOOS=darwin CGO_ENABLED=0 go build -installsuffix cgo -o ${base}/${name}_darwin -ldflags="-s -w -X github.com/hamstah/awstools/common.Version=${version} -X github.com/hamstah/awstools/common.CommitHash=${commit}" ${folder}/*.go
gpg --armor --detach-sig ${base}/${name}_darwin
fi

else
cd ${folder}
make
cd -
cd ${folder}
make
cd -
fi
done

Expand Down

0 comments on commit bedb779

Please sign in to comment.