This repository has been archived by the owner on Jun 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ship script for Articulate until this provider becomes official
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Articulate Specific ship pipeline | ||
#!/usr/bin/env bash | ||
|
||
version=$(git tag --sort=v:refname | tail -1) | ||
|
||
mkdir -p ~/.terraform.d/plugins/ | ||
|
||
gox -osarch="linux/amd64 darwin/amd64 windows/amd64" \ | ||
-output="${HOME}/.terraform.d/plugins/{{.OS}}_{{.Arch}}/terraform-provider-okta_${version}_x4" . | ||
|
||
echo "copying terraform-provider-okta_${version}_x4 to s3://${TERRAFORM_PLUGINS_BUCKET}" | ||
aws s3 cp \ | ||
"${HOME}/.terraform.d/plugins/linux_amd64/terraform-provider-okta_${version}_x4" \ | ||
"s3://${TERRAFORM_PLUGINS_BUCKET}" \ | ||
--profile "${TERRAFORM_PLUGINS_PROFILE}" |