Skip to content

Commit f1c30db

Browse files
authored
[DX-3862] remove event trigger from post-release tests (#22144)
remove event trigger from post-release tests
1 parent ecf53e3 commit f1c30db

2 files changed

Lines changed: 2 additions & 64 deletions

File tree

.github/workflows/build-publish.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -239,45 +239,6 @@ jobs:
239239
}
240240
JSON
241241
242-
emit-release-image-tagged-event:
243-
name: Emit release image tagged event
244-
needs: [ checks ]
245-
if: needs.checks.outputs.is-release == 'true'
246-
runs-on: ubuntu-latest
247-
permissions:
248-
contents: write
249-
steps:
250-
- name: Compute image tag
251-
id: compute-image-tag
252-
shell: bash
253-
env:
254-
GIT_TAG: ${{ github.ref_name }}
255-
run: |
256-
# Compute image tag by removing 'v' prefix
257-
# Examples:
258-
# v2.34.0 -> 2.34.0
259-
tag_without_v="${GIT_TAG#v}"
260-
echo "image-tag=$tag_without_v" | tee -a "$GITHUB_OUTPUT"
261-
- name: Emit release image tagged event
262-
env:
263-
DOCKER_IMAGE_TAG: ${{ steps.compute-image-tag.outputs.image-tag }}
264-
GITHUB_REF_NAME: ${{ github.ref_name }}
265-
GH_TOKEN: ${{ github.token }}
266-
run: |
267-
gh api \
268-
--method POST \
269-
-H "Accept: application/vnd.github+json" \
270-
"/repos/${GITHUB_REPOSITORY}/dispatches" \
271-
--input - <<JSON
272-
{
273-
"event_type": "release-image-tagged",
274-
"client_payload": {
275-
"chainlink_image_tag": "${DOCKER_IMAGE_TAG}",
276-
"chainlink_version": "${GITHUB_REF_NAME}"
277-
}
278-
}
279-
JSON
280-
281242
# Notify Slack channel for new git tags associated with pre-releases.
282243
# Final release notifications originate from the release coordinator repo.
283244
slack-notify:

.github/workflows/post-release-image-tagged.yml renamed to .github/workflows/post-image-released.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
1-
name: "Post Release Image Tagged"
1+
name: "Post Image Released"
22
on:
33
# to be used with post release tests
4-
repository_dispatch:
5-
types: [ release-image-tagged ]
4+
workflow_dispatch:
65

76
permissions: {}
87

98
jobs:
10-
validate-trigger:
11-
runs-on: ubuntu-latest
12-
permissions:
13-
contents: read
14-
steps:
15-
- name: Validate trigger
16-
env:
17-
CHAINLINK_IMAGE_TAG: ${{ github.event.client_payload.chainlink_image_tag }}
18-
CHAINLINK_VERSION: ${{ github.event.client_payload.chainlink_version }}
19-
run: |
20-
echo "Image Tag: $CHAINLINK_IMAGE_TAG"
21-
echo "Chainlink Version: $CHAINLINK_VERSION"
22-
if [ -z "$CHAINLINK_IMAGE_TAG" ]; then
23-
echo "Chainlink image tag is required, but 'client_payload.chainlink_image_tag' is empty"
24-
exit 1
25-
fi
26-
if [ -z "$CHAINLINK_VERSION" ]; then
27-
echo "Chainlink Version is required, but 'client_payload.chainlink_version' is empty"
28-
exit 1
29-
fi
30-
echo "Trigger validated successfully"
31-
329
# Upgrade compatibility tests
3310
# Run on images excluding beta and release candidate versions
3411
df1-compat:

0 commit comments

Comments
 (0)