Skip to content

Commit

Permalink
Merge pull request #313 from akamai/release/v2.1.0
Browse files Browse the repository at this point in the history
Release/v2.1.0
  • Loading branch information
majakubiec authored Jun 2, 2022
2 parents b1c7f7e + c4259c1 commit d3fb22a
Show file tree
Hide file tree
Showing 642 changed files with 8,700 additions and 1,541 deletions.
4 changes: 0 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ builds:
ignore:
- goos: darwin
goarch: '386'
- goos: darwin
goarch: 'arm64'
- goos: windows
goarch: 'arm64'
# - goos: freebsd
# goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# RELEASE NOTES

## 2.1.0 (Jun 2, 2022)

#### FEATURES/ENHANCEMENTS:

* Support for Darwin ARM64 architecture ([GH#236](https://github.com/akamai/terraform-provider-akamai/issues/236))

* Image and Video Manager
* New data sources:
* `akamai_imaging_policy_image` - generate JSON for image policy
* `akamai_imaging_policy_video` - generate JSON for video policy
* Add `ImQuery` transformation
* Add `Composite` transformation to `PostBreakpointTransformations`

#### BUG FIXES:

* PAPI
* Update documentation for `akamai_property_rules_template`
* Track remote changes in property rules ([#305](https://github.com/akamai/terraform-provider-akamai/issues/305))

* IAM
* `akamai_iam_user`: remove phone number validation, to allow international phone number format

## 2.0.0 (Apr 28, 2022)

#### BREAKING CHANGES:
Expand Down
3 changes: 3 additions & 0 deletions build/internal/releaser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ARG SSH_KNOWN_HOSTS

COPY AkamaiCorpRoot-G1.pem /usr/local/share/ca-certificates/AkamaiCorpRoot-G1.pem
COPY .edgerc /root/.edgerc
COPY clone_repos.bash /usr/local/bin/clone_repos.bash
COPY goreleaser_build.bash /usr/local/bin/goreleaser_build.bash
COPY smoke_tests.bash /usr/local/bin/smoke_tests.bash

RUN apt update && apt install -y curl git gcc ca-certificates openssh-client gnupg \
&& echo "deb [arch=amd64] https://apt.releases.hashicorp.com focal main" >> /etc/apt/sources.list \
Expand Down
10 changes: 10 additions & 0 deletions build/internal/releaser/clone_repos.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
echo "$SSH_KNOWN_HOSTS" >/root/.ssh/known_hosts
echo "$SSH_PUB_KEY" >/root/.ssh/id_rsa.pub
echo "$SSH_PRV_KEY" >/root/.ssh/id_rsa
chmod 700 /root/.ssh
chmod 600 /root/.ssh/id_rsa
chmod 644 /root/.ssh/id_rsa.pub
chmod 644 /root/.ssh/known_hosts
cd /workspace
git clone ssh://[email protected]:7999/devexp/akamaiopen-edgegrid-golang.git
git clone ssh://[email protected]:7999/devexp/terraform-provider-akamai.git
24 changes: 6 additions & 18 deletions build/internal/releaser/goreleaser.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,13 @@ docker container run --name "${CONTAINER}" -d -it \
-e SSH_PRV_KEY="${SSH_PRV_KEY}" \
-e SSH_KNOWN_HOSTS="${SSH_KNOWN_HOSTS}" "${IMAGE}"

echo "cloning repositories and executing goreleaser:"
docker container exec "${CONTAINER}" bash -c 'echo "$SSH_KNOWN_HOSTS" > /root/.ssh/known_hosts;
echo "$SSH_PUB_KEY" > /root/.ssh/id_rsa.pub;
echo "$SSH_PRV_KEY" > /root/.ssh/id_rsa;
chmod 700 /root/.ssh;
chmod 600 /root/.ssh/id_rsa;
chmod 644 /root/.ssh/id_rsa.pub;
chmod 644 /root/.ssh/known_hosts;
cd /workspace;
git clone ssh://[email protected]:7999/devexp/akamaiopen-edgegrid-golang.git;
git clone ssh://[email protected]:7999/devexp/terraform-provider-akamai.git;
cd terraform-provider-akamai;
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v2=../akamaiopen-edgegrid-golang/;
git tag v10.0.0;
goreleaser build --single-target --skip-validate --config ./.goreleaser.yml --output /root/.terraform.d/plugins/registry.terraform.io/akamai/akamai/10.0.0/linux_amd64/terraform-provider-akamai_v10.0.0'
echo "cloning repositories:"
docker container exec "${CONTAINER}" bash -c clone_repos.bash

echo "executing goreleaser build:"
docker container exec "${CONTAINER}" bash -c goreleaser_build.bash

echo "smoke test:"
docker container exec ${CONTAINER} bash -c 'cd /workspace/terraform-provider-akamai/examples/akamai_cp_code;
terraform init;
terraform plan'
docker container exec ${CONTAINER} bash -c smoke_tests.bash

clean_up
4 changes: 4 additions & 0 deletions build/internal/releaser/goreleaser_build.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd /workspace/terraform-provider-akamai
go mod edit -replace github.com/akamai/AkamaiOPEN-edgegrid-golang/v2=../akamaiopen-edgegrid-golang/
git tag v10.0.0
goreleaser build --single-target --skip-validate --config ./.goreleaser.yml --output /root/.terraform.d/plugins/registry.terraform.io/akamai/akamai/10.0.0/linux_amd64/terraform-provider-akamai_v10.0.0
4 changes: 4 additions & 0 deletions build/internal/releaser/smoke_tests.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd /workspace/terraform-provider-akamai/examples/akamai_cp_code
git status | grep "nothing to commit, working tree clean"
terraform init
terraform plan
2 changes: 1 addition & 1 deletion docs/data-sources/authorities_set.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: authorities_set"
subcategory: "DNS"
subcategory: "Edge DNS"
description: |-
DNS Authorities Set
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_contact_types.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_contact_types"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Contact Types
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_countries.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_countries"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Countries
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_groups.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_groups"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Groups
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_roles.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_roles"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Roles
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_states.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_states"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM States
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_supported_langs.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_supported_langs"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Supported Languages
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_timeout_policies.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_timeout_policies"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Timeout Policies
---
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/iam_timezones.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: "akamai"
page_title: "Akamai: akamai_iam_timezones"
subcategory: "IAM"
subcategory: "Identity and Access Management"
description: |-
IAM Timeout Policies
---
Expand Down
Loading

0 comments on commit d3fb22a

Please sign in to comment.