File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed
scripts/infrastructure/terraform Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ permissions:
9
9
10
10
env :
11
11
BASE_CACHE_SUFFIX : base
12
- BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }}
12
+ # BASE_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}
13
+ BASE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
13
14
BRANCH_NAME : ${{ github.event.pull_request.head.ref }}
14
15
CI_ROLE_NAME : ${{ secrets.CI_ROLE_NAME }}
15
16
BRANCH_GITHUB_SHA_SHORT : $(echo ${{ github.event.pull_request.head.sha }} | cut -c 1-7)
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 2024-11-05
4
+ - [ PI-585] PR/release CI builds in dev
5
+
3
6
## 2024-10-31
4
7
- [ PI-555] Remov fhir from create device endpoint
5
8
- [ PI-556] Remov fhir from read device endpoint
Original file line number Diff line number Diff line change 1
- 2024.10.31
1
+ 2024.11.05
Original file line number Diff line number Diff line change
1
+ - [ PI-585] PR/release CI builds in dev
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " connecting-party-manager"
3
- version = " 2024.10.31 "
3
+ version = " 2024.11.05 "
4
4
description = " Repository for the Connecting Party Manager API and related services"
5
5
authors = [" NHS England" ]
6
6
license = " LICENSE.md"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function _terraform() {
19
19
local terraform_role_name=" NHSDeploymentRole"
20
20
lowercase_string=$( echo " $TERRAFORM_WORKSPACE " | tr ' [:upper:]' ' [:lower:]' )
21
21
22
- account=$( _get_account_name " $AWS_ACCOUNT " " $lowercase_string " ) || return 1
22
+ account=$( _get_account_name " $AWS_ACCOUNT " ) || return 1
23
23
workspace=$( _get_workspace_name " $account " " $lowercase_string " ) || return 1
24
24
aws_account_id=$( _get_aws_account_id " $account " " $PROFILE_PREFIX " " $VERSION " ) || return 1
25
25
Original file line number Diff line number Diff line change @@ -5,15 +5,9 @@ source ./scripts/infrastructure/terraform/terraform-constants.sh
5
5
6
6
function _get_account_name() {
7
7
local account=$1
8
- local workspace=$2
9
8
10
- # if account not specified then infer it
11
9
if [[ -z " $account " ]]; then
12
- if [[ " $workspace " = " ci-" * ]]; then
13
- echo " ref" # ci builds go here
14
- else
15
- echo " dev" # personal builds co here
16
- fi
10
+ echo " dev"
17
11
else
18
12
echo " $account "
19
13
fi
You can’t perform that action at this time.
0 commit comments