Skip to content

Commit c678a55

Browse files
sandbox tag
1 parent 1efe487 commit c678a55

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/actions/build-proxies/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ runs:
7171
run: |
7272
make build-json-oas-spec APIM_ENV=sandbox
7373
74+
- name: Set docker tag
75+
shell: bash
76+
run: |
77+
jq --arg newtag "${{ inputs.version }}" '.["x-nhsd-apim"].target.containers[0].image.tag = $newtag' build/notify-supplier.json > build/notify-supplier_target.json && mv build/notify-supplier_target.json build/notify-supplier.json
78+
7479
- name: Deploy to Internal Dev Sandbox
7580
shell: bash
7681
run: |

.github/actions/build-sandbox/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ runs:
5252
working-directory: ./sandbox
5353
run: |
5454
proxygen docker get-login | bash
55-
docker build -t nhs-notify-supplier:latest .
56-
IMAGE_ID=$(docker images -q nhs-notify-supplier:latest)
57-
docker tag $IMAGE_ID 958002497996.dkr.ecr.eu-west-2.amazonaws.com/nhs-notify-supplier:latest
58-
docker push 958002497996.dkr.ecr.eu-west-2.amazonaws.com/nhs-notify-supplier:latest
55+
docker build -t nhs-notify-supplier:${{ inputs.version }} .
56+
IMAGE_ID=$(docker images -q nhs-notify-supplier:${{ inputs.version }})
57+
docker tag $IMAGE_ID 958002497996.dkr.ecr.eu-west-2.amazonaws.com/nhs-notify-supplier:${{ inputs.version }}
58+
docker push 958002497996.dkr.ecr.eu-west-2.amazonaws.com/nhs-notify-supplier:${{ inputs.version }}

specification/api/components/x-nhsd-apim/target-sandbox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ containers:
44
- name: nhs-notify-supplier
55
image:
66
name: nhs-notify-supplier
7-
tag: latest
7+
tag: pr99
88
environment:
99
LOG_LEVEL: info
1010
NODE_ENV: development

0 commit comments

Comments
 (0)