Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:

tag_release:
needs: [quality_checks, get_commit_id, get_config_values]
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@e208462679dedaded1e066c25c9830b9c0bf1930
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@6713f00b9a29ae0ffc42b50dc610cb252d601181
Comment thread
anthony-nhs marked this conversation as resolved.
permissions:
id-token: write
contents: write
with:
dry_run: true
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/create_int_release_notes.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/create_prod_release_notes.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/create_rc_int_release_notes.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/mark_jira_released.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,18 @@ jobs:

tag_release:
needs: [quality_checks, get_commit_id, get_config_values]
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@e208462679dedaded1e066c25c9830b9c0bf1930
uses: NHSDigital/eps-common-workflows/.github/workflows/tag-release-devcontainer.yml@6713f00b9a29ae0ffc42b50dc610cb252d601181
Comment thread
anthony-nhs marked this conversation as resolved.
permissions:
id-token: write
contents: write
with:
dry_run: false
pinned_image: ${{ needs.get_config_values.outputs.pinned_image }}
branch_name: master
tag_format: ${{ needs.get_config_values.outputs.tag_format }}
main_branch: master
update_jira: true
jira_release_prefix: "fhir-facade"
Comment thread
anthony-nhs marked this conversation as resolved.
secrets: inherit

package_code:
Expand Down
3 changes: 3 additions & 0 deletions .trivyignore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,6 @@ vulnerabilities:
- id: CVE-2026-2229
statement: Transitive dependency vulnerability in undici of npm
expired_at: 2026-06-01
- id: CVE-2026-33036
statement: fast-xml-parser vulnerability accepted as risk
expired_at: 2026-06-01
22 changes: 0 additions & 22 deletions azure/templates/post_dev_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,3 @@ steps:
echo "##[debug] Running post dev deploy"
displayName: run post dev deploy
- template: ./run_tests.yml
# call create release notes
- bash: |
export NOTIFY_GITHUB_REPOSITORY=$(NOTIFY_GITHUB_REPOSITORY)
export BRANCH_NAME=$(Build.SourceBranchName)
if [ "${BRANCH_NAME}" = "merge" ]; then
export BRANCH_NAME=$(echo "$(System.PullRequest.SourceBranch)" | awk -F/ '{print $NF}')
fi

if [[ -z ${NOTIFY_GITHUB_REPOSITORY} ]]; then
export NOTIFY_GITHUB_REPOSITORY=$(Build.Repository.Name)
fi
cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}"
}
EOF
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches"
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
displayName: Create release notes post dev
20 changes: 0 additions & 20 deletions azure/templates/post_int_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,3 @@ steps:
echo "##[debug] Running post int deploy"
displayName: run post int deploy
- template: ./run_tests.yml
# call create release notes
- bash: |
export NOTIFY_GITHUB_REPOSITORY=$(NOTIFY_GITHUB_REPOSITORY)
export BRANCH_NAME=$(Build.SourceBranchName)
if [ "${BRANCH_NAME}" = "merge" ]; then
export BRANCH_NAME=$(echo "$(System.PullRequest.SourceBranch)" | awk -F/ '{print $NF}')
fi

if [[ -z ${NOTIFY_GITHUB_REPOSITORY} ]]; then
export NOTIFY_GITHUB_REPOSITORY=$(Build.Repository.Name)
fi
cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}"
}
EOF
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_int_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
displayName: Create release notes post int
40 changes: 0 additions & 40 deletions azure/templates/post_prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,3 @@ steps:
- bash: |
echo "##[debug] Running post prod deploy"
displayName: run post prod deploy
# call create release notes
- bash: |
export NOTIFY_GITHUB_REPOSITORY=$(NOTIFY_GITHUB_REPOSITORY)
export SERVICE_ARTIFACT_NAME=$(SERVICE_ARTIFACT_NAME)
export BRANCH_NAME=$(Build.SourceBranchName)
if [ "${BRANCH_NAME}" = "merge" ]; then
export BRANCH_NAME=$(echo "$(System.PullRequest.SourceBranch)" | awk -F/ '{print $NF}')
fi

if [[ -z ${NOTIFY_GITHUB_REPOSITORY} ]]; then
export NOTIFY_GITHUB_REPOSITORY=$(Build.Repository.Name)
fi
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/dispatches"
export TARGET_TAG=`echo ${SERVICE_ARTIFACT_NAME} | grep -E -o "(v[0-9]+\.[0-9]+\.[0-9]+)" | tail -1`
export RELEASE_VERSION=FHIR-${TARGET_TAG}
echo "##[debug] RELEASE_VERSION: ${RELEASE_VERSION}"
echo "##[debug] SERVICE_ARTIFACT_NAME ${SERVICE_ARTIFACT_NAME}"

cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}"
}
EOF

echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_prod_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)

cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}",
"inputs": {
"release_version": "${RELEASE_VERSION}"
}
}
EOF
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/mark_jira_released.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/mark_jira_released.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
displayName: Create release notes and mark released post prod
29 changes: 0 additions & 29 deletions azure/templates/pre_int_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,3 @@ steps:
echo "##[debug] Running pre int deploy"
displayName: run pre int deploy
# call create release notes
- bash: |
export NOTIFY_GITHUB_REPOSITORY=$(NOTIFY_GITHUB_REPOSITORY)
export SERVICE_ARTIFACT_NAME=$(SERVICE_ARTIFACT_NAME)
export BRANCH_NAME=$(Build.SourceBranchName)
if [ "${BRANCH_NAME}" = "merge" ]; then
export BRANCH_NAME=$(echo "$(System.PullRequest.SourceBranch)" | awk -F/ '{print $NF}')
fi

if [[ -z ${NOTIFY_GITHUB_REPOSITORY} ]]; then
export NOTIFY_GITHUB_REPOSITORY=$(Build.Repository.Name)
fi
export TARGET_TAG=`echo ${SERVICE_ARTIFACT_NAME} | grep -E -o "(v[0-9]+\.[0-9]+\.[0-9]+)" | tail -1`
export CURRENT_TAG=$(curl -s "https://int.api.service.nhs.uk/electronic-prescriptions/_ping" | jq --raw-output ".version")
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/dispatches"
echo "##[debug] SERVICE_ARTIFACT_NAME ${SERVICE_ARTIFACT_NAME}"
echo "##[debug] TARGET_TAG ${TARGET_TAG}"
cat <<EOF > payload.json
{
"ref": "${BRANCH_NAME}",
"inputs": {
"release_tag": "${TARGET_TAG}",
"current_tag": "${CURRENT_TAG}"
}
}
EOF
echo "##[debug] Hitting https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_rc_int_release_notes.yml/dispatches"
cat payload.json
curl --fail -q -X POST "https://api.github.com/repos/${NOTIFY_GITHUB_REPOSITORY}/actions/workflows/create_rc_int_release_notes.yml/dispatches" -d "@./payload.json" --user $(GITHUB_USER):$(GITHUB_ACCESS_TOKEN)
displayName: Create RC release notes pre int
Loading