Skip to content

Commit

Permalink
Allowing tokens starting with -- (cattle-ops#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rina-spinne authored and dj5k committed Nov 21, 2019
1 parent c031c33 commit 020012a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/gitlab-runner.tpl
Expand Up @@ -48,7 +48,7 @@ then
--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}"
aws ssm put-parameter --overwrite --type SecureString --name "${secure_parameter_store_runner_token_key}" --value="$token" --region "${secure_parameter_store_region}"
fi

sed -i.bak s/__REPLACED_BY_USER_DATA__/`echo $token`/g /etc/gitlab-runner/config.toml
Expand Down

0 comments on commit 020012a

Please sign in to comment.