Skip to content

Commit d622489

Browse files
Merge pull request #487 from NHSDigital/feature/ERSSUP-76481
[ERSSUP-76481]-[]-[Make python version configurable across all pipeli…
2 parents 1c1a582 + 2b85894 commit d622489

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

azure/common/apigee-deployment.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ parameters:
148148
default: 'DEPRECATED'
149149
- name: spec_file
150150
default: 'DEPRECATED'
151+
- name: python_version
152+
type: string
153+
default: "3.8"
151154

152155

153156
extends:

azure/common/deploy-stage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ parameters:
7070
- config_ids
7171
- depends_on
7272
- jinja_templates
73+
- name: python_version
74+
type: string
7375

7476
stages:
7577
- stage: ${{ parameters.stage_name }}
@@ -121,9 +123,9 @@ stages:
121123
aws_account: "${{ parameters.aws_account }}"
122124

123125
- task: UsePythonVersion@0
124-
displayName: 'Use Python 3.8'
126+
displayName: "Use Python ${{ parameters.python_version }}"
125127
inputs:
126-
versionSpec: 3.8
128+
versionSpec: ${{ parameters.python_version }}
127129

128130
- template: "../components/set-facts.yml"
129131
parameters:

azure/common/deploy-stages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ parameters:
1414
type: string
1515
- name: prod_producer_approval
1616
type: boolean
17+
- name: python_version
18+
type: string
1719

1820

1921

azure/common/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ parameters:
5555
default: '/_status'
5656
- name: manual_approval_env
5757
type: string
58+
- name: python_version
59+
type: string
5860

5961
stages:
6062
- ${{ if eq(parameters.environment, 'manual-approval') }}:

azure/common/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ parameters:
6060
- name: producer_approval
6161
type: boolean
6262
default: false
63+
- name: python_version
64+
type: string
6365

6466
stages:
6567
- ${{ if eq(parameters.environment, 'manual-approval') }}:

0 commit comments

Comments
 (0)