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
4 changes: 2 additions & 2 deletions .github/workflows/api-worker-post-deployment-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:
manifest="$(mktemp)"
trap 'rm -f "$manifest"' EXIT
curl --fail --silent --show-error --location \
https://raw.githubusercontent.com/pcvantol/djconnect/main/docs/release/PLATFORM_3_3_CURRENT_MAIN_MANIFEST_PROPOSAL.json \
https://raw.githubusercontent.com/pcvantol/djconnect/main/docs/release/PLATFORM_4_0_RC2_API_OPERATIONAL_MANIFEST.json \
--output "$manifest"
test "$(jq -r '.status' "$manifest")" = APPROVED_DEPLOYMENT_DISPATCH_PENDING
test "$(jq -r '.approval.state' "$manifest")" = APPROVED
test "$(jq -r '.manifest_id' "$manifest")" = "$MANIFEST_ID"
test "$(jq -r '.release_profile' "$manifest")" = "$RELEASE_PROFILE"
release_version="$(jq -r --arg sha "$CANDIDATE_SHA" '.repositories[] | select(.repository == "pcvantol/djconnect-api" and .source_sha == $sha) | .version' "$manifest")"
printf '%s' "$release_version" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'
printf '%s' "$release_version" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$'
jq -e --arg target "$TARGET" --arg artifact "$ARTIFACT_ID" --arg sha "$ARTIFACT_SHA256" \
'.artifact_bindings[] | select(.target == $target and (.artifact_id | tostring) == $artifact and .artifact_sha256 == $sha)' \
"$manifest" >/dev/null
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
manifest="$(mktemp)"
trap 'rm -f "$manifest"' EXIT
curl --fail --silent --show-error --location \
https://raw.githubusercontent.com/pcvantol/djconnect/main/docs/release/PLATFORM_3_3_CURRENT_MAIN_MANIFEST_PROPOSAL.json \
https://raw.githubusercontent.com/pcvantol/djconnect/main/docs/release/PLATFORM_4_0_RC2_API_OPERATIONAL_MANIFEST.json \
--output "$manifest"
test "$(jq -r '.status' "$manifest")" = APPROVED_DEPLOYMENT_DISPATCH_PENDING
test "$(jq -r '.approval.state' "$manifest")" = APPROVED
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/post-merge-release-evidence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ permissions:
jobs:
reconcile:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main'
uses: pcvantol/djconnect/.github/workflows/post-merge-release-evidence.yml@ebbb35f038a7a3c7d46c12660968bcd50eb67580
uses: pcvantol/djconnect/.github/workflows/post-merge-release-evidence.yml@946fc839b19dda57230e44a38e170276f3c5eb12
with:
policy_source_ref: ebbb35f038a7a3c7d46c12660968bcd50eb67580
policy_source_ref: 946fc839b19dda57230e44a38e170276f3c5eb12
required_main_workflow: Validate
required_check_contexts: '["Trusted Delivery qualification / Qualify trusted delivery"]'
repository_role: active_source
coverage_artifact_name: api-cobertura-coverage
durable_evidence_release_tag_prefix: internal-api