Skip to content

Commit

Permalink
updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed Jan 30, 2019
1 parent bdf96dc commit 9fb70ba
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
- image: circleci/golang:1.11

working_directory: /go/src/github.com/warrensbox/aws-find

Expand All @@ -16,6 +16,20 @@ jobs:
- run: go test -v ./...
- run: mkdir -p build
- run: go build -v -o build/awsfind
- run: source version
- run: export RELEASE_VERSION;
- run: RELEASE_VERSION=$RELEASE_VERSION.${CIRCLE_BUILD_NUM}
- run: export RELEASE_VERSION;
- run: echo $RELEASE_VERSION
- run: echo $GITHUB_TOKEN
- run: mkdir -p /home/circleci/bin
- run: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- run: export PATH="/home/warrensbox/bin:${PATH}"
- run: git config user.email "warren.veerasingam@gmail.com"
- run: git config user.name "warrensbox"
- run: git tag -a ${RELEASE_VERSION} -m "Release Version"
- run: git push origin ${RELEASE_VERSION}
- run: curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash

- persist_to_workspace:
root: build
Expand Down Expand Up @@ -76,17 +90,17 @@ jobs:
echo $RELEASE_VERSION
echo $GITHUB_TOKEN
mkdir -p /home/circleci/bin
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
export PATH="/home/warrensbox/bin:${PATH}"
go get -v -t -d ./...
dep ensure
git config user.email "warren.veerasingam@gmail.com"
git config user.name "warrensbox"
git tag -a ${RELEASE_VERSION} -m "Release Version"
git push origin ${RELEASE_VERSION}
curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
# mkdir -p /home/circleci/bin
# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# export PATH="/home/warrensbox/bin:${PATH}"
# go get -v -t -d ./...
# dep ensure
# git config user.email "warren.veerasingam@gmail.com"
# git config user.name "warrensbox"
# git tag -a ${RELEASE_VERSION} -m "Release Version"
# git push origin ${RELEASE_VERSION}
# curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
workflows:
version: 2
Expand Down

0 comments on commit 9fb70ba

Please sign in to comment.