Skip to content

Commit 0f70acf

Browse files
committed
Build terragrunt using gruntwork-module-ci-helpers
1 parent c2f6e0c commit 0f70acf

4 files changed

+9
-249
lines changed

_ci/build-and-push-release-assets.sh

-194
This file was deleted.

_ci/install-dependencies.sh

-25
This file was deleted.

_ci/run-tests.sh

-16
This file was deleted.

circle.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
machine:
22
environment:
3-
PATH: $PATH:$HOME/glide/linux-amd64/
4-
IMPORT_PATH: "github.com/gruntwork-io/${CIRCLE_PROJECT_REPONAME}"
5-
REPO: "$HOME/.go_workspace/src/${IMPORT_PATH}"
3+
PATH: $PATH:$HOME/glide/linux-amd64
64

75
dependencies:
86
override:
9-
- _ci/install-dependencies.sh
7+
# Install the gruntwork-module-circleci-helpers and use it to configure the build environment and run tests.
8+
- curl -Ls https://raw.githubusercontent.com/gruntwork-io/gruntwork-installer/master/bootstrap-gruntwork-installer.sh | bash /dev/stdin --version 0.0.9
9+
- gruntwork-install --module-name "gruntwork-module-circleci-helpers" --repo "https://github.com/gruntwork-io/module-ci" --tag "v0.0.6"
10+
- configure-environment-for-gruntwork-module --terraform-version NONE --packer-version NONE --go-src-path .
11+
1012
cache_directories:
1113
- ~/glide
1214

1315
test:
1416
override:
15-
- ${REPO}/_ci/run-tests.sh
17+
- run-go-tests
1618

1719
deployment:
1820
release:
1921
tag: /v.*/
2022
commands:
2123
# If a new release is tagged in GitHub, build the binaries and upload them to GitHub.
22-
- |
23-
${REPO}/_ci/build-and-push-release-assets.sh \
24-
--local-src-path "$REPO" \
25-
--local-bin-output-path "$HOME/bin/$CIRCLE_PROJECT_REPONAME" \
26-
--github-repo-owner "$CIRCLE_PROJECT_USERNAME" \
27-
--github-repo-name "$CIRCLE_PROJECT_REPONAME" \
28-
--git-tag "$CIRCLE_TAG" \
29-
--app-name "$CIRCLE_PROJECT_REPONAME" \
30-
--ld-flags "-X main.VERSION=$CIRCLE_TAG"
24+
- build-go-binaries --app-name terragrunt --dest-path bin --ld-flags "-X main.VERSION=$CIRCLE_TAG"
25+
- upload-github-release-assets bin/*

0 commit comments

Comments
 (0)