Skip to content

Commit

Permalink
Merge branch 'release/4.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Sep 30, 2019
2 parents 1be4e10 + bd43e4d commit b1c8824
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 17 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
name: Verify
on: [push]
on: [push, pull_request]

jobs:
verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: verify
run: |
./ci/bin/install.sh
./ci/bin/verify.sh
- uses: actions/checkout@v1
- name: verify
run: |
./ci/bin/install.sh
./ci/bin/verify.sh
verify-examples:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: verify-examples
run: |
./ci/bin/install.sh
./ci/bin/verify-examples.sh
- uses: actions/checkout@v1
- name: verify-examples
run: |
./ci/bin/install.sh
./ci/bin/verify-examples.sh
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## Unrelease

## 4.6.0 - 2019-09-30
- Add access_level option to registration call in runner template #134 @willychenchen
- Bump gitlab-runner default version to 12.3.0 #135 @loustler

## 4.5.0 - 2019-09-09
- Set docker machine version by default to 0.16.2 #131 @npalm
- Add SSM session manager support #121 #126 @npalm
- Move to github actions #130 @npalm
- Enable s3 encryption #129 @hendrixra
- Enable s3 encryption #129 @hendrixroa
- Bump gitlab-runner to 12.2.0 #128 @mpsq

## 4.4.0 - 2019-08-21
Expand Down Expand Up @@ -231,7 +235,8 @@ Module is available as Terraform 0.11 module, pin module to version 3.x. Please
- Update default AMI's to The latest Amazon Linux AMI 2017.09.1 - released on 2018-01-17.
- Minor updates in the example

[Unreleased]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.5.0...HEAD
[Unreleased]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.6.0...HEAD
[4.6.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.5.0...4.6.0
[4.5.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.4.0...4.5.0
[4.4.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.3.0...4.4.0
[4.3.0]: https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.2.0...4.3.0
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ gitlab_runner_registration_config = {
locked_to_project = "true"
run_untagged = "false"
maximum_timeout = "3600"
access_level = "<not_protected OR ref_protected, ref_protected runner will only run on pipelines triggered on protected branches. Defaults to not_protected>"
}
```

Expand Down Expand Up @@ -252,7 +253,7 @@ terraform destroy
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
| gitlab\_runner\_registration\_config | Configuration used to register the runner. See the README for an example, or reference the examples in the examples directory of this repo. | map(string) | `<map>` | no |
| gitlab\_runner\_ssh\_cidr\_blocks | List of CIDR blocks to allow SSH Access to the gitlab runner instance. | list(string) | `<list>` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.2.0"` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.3.0"` | no |
| instance\_role\_json | Default runner instance override policy, expected to be in JSON format. | string | `""` | no |
| instance\_type | Instance type used for the GitLab runner. | string | `"t3.micro"` | no |
| overrides | This maps provides the possibility to override some defaults. The following attributes are supported: `name_sg` overwrite the `Name` tag for all security groups created by this module. `name_runner_agent_instance` override the `Name` tag for the ec2 instance defined in the auto launch configuration. `name_docker_machine_runners` ovverrid the `Name` tag spot instances created by the runner agent. | map(string) | `<map>` | no |
Expand Down
1 change: 1 addition & 0 deletions _docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ gitlab_runner_registration_config = {
locked_to_project = "true"
run_untagged = "false"
maximum_timeout = "3600"
access_level = "<not_protected OR ref_protected, ref_protected runner will only run on pipelines triggered on protected branches. Defaults to not_protected>"
}
```

Expand Down
2 changes: 1 addition & 1 deletion _docs/TF_MODULE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
| gitlab\_runner\_registration\_config | Configuration used to register the runner. See the README for an example, or reference the examples in the examples directory of this repo. | map(string) | `<map>` | no |
| gitlab\_runner\_ssh\_cidr\_blocks | List of CIDR blocks to allow SSH Access to the gitlab runner instance. | list(string) | `<list>` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.2.0"` | no |
| gitlab\_runner\_version | Version of the GitLab runner. | string | `"12.3.0"` | no |
| instance\_role\_json | Default runner instance override policy, expected to be in JSON format. | string | `""` | no |
| instance\_type | Instance type used for the GitLab runner. | string | `"t3.micro"` | no |
| overrides | This maps provides the possibility to override some defaults. The following attributes are supported: `name_sg` overwrite the `Name` tag for all security groups created by this module. `name_runner_agent_instance` override the `Name` tag for the ec2 instance defined in the auto launch configuration. `name_docker_machine_runners` ovverrid the `Name` tag spot instances created by the runner agent. | map(string) | `<map>` | no |
Expand Down
1 change: 1 addition & 0 deletions examples/runner-public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This examples shows:
- Overrides for tag naming.
- Registration via GitLab token.
- Auto scaling using `docker+machine` executor.
- Register runner as [protected](https://docs.gitlab.com/ee/ci/runners/#protected-runners).

## Prerequisite

Expand Down
1 change: 1 addition & 0 deletions examples/runner-public/_docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This examples shows:
- Overrides for tag naming.
- Registration via GitLab token.
- Auto scaling using `docker+machine` executor.
- Register runner as [protected](https://docs.gitlab.com/ee/ci/runners/#protected-runners).


## Prerequisite
Expand Down
1 change: 1 addition & 0 deletions examples/runner-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module "runner" {
locked_to_project = "true"
run_untagged = "false"
maximum_timeout = "3600"
access_level = "ref_protected"
}

overrides = {
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ data "template_file" "gitlab_runner" {
gitlab_runner_locked_to_project = var.gitlab_runner_registration_config["locked_to_project"]
gitlab_runner_run_untagged = var.gitlab_runner_registration_config["run_untagged"]
gitlab_runner_maximum_timeout = var.gitlab_runner_registration_config["maximum_timeout"]
gitlab_runner_access_level = lookup(var.gitlab_runner_registration_config, "access_level", "not_protected")
}
}

Expand Down
1 change: 1 addition & 0 deletions template/gitlab-runner.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ then
--form "locked=${gitlab_runner_locked_to_project}" \
--form "run_untagged=${gitlab_runner_run_untagged}" \
--form "maximum_timeout=${gitlab_runner_maximum_timeout}" \
--form "access_level=${gitlab_runner_access_level}" \
| jq -r .token)
aws ssm put-parameter --overwrite --type SecureString --name "${secure_parameter_store_runner_token_key}" --value $token --region "${secure_parameter_store_region}"
fi
Expand Down
3 changes: 2 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ variable "cache_shared" {
variable "gitlab_runner_version" {
description = "Version of the GitLab runner."
type = string
default = "12.2.0"
default = "12.3.0"
}

variable "enable_gitlab_runner_ssh_access" {
Expand Down Expand Up @@ -394,6 +394,7 @@ variable "gitlab_runner_registration_config" {
locked_to_project = ""
run_untagged = ""
maximum_timeout = ""
access_level = ""
}
}

Expand Down

0 comments on commit b1c8824

Please sign in to comment.