Skip to content

Commit 7376da4

Browse files
authored
[ISSUE #22442] move success message from pypi publish to docker image… (#23620)
* [ISSUE #22442] move success message from pypi publish to docker image publish * [ISSUE #22442] move success message from pypi publish to docker image publish * [ISSUE #22442] fix bump version
1 parent ee1ae2d commit 7376da4

File tree

3 files changed

+58
-31
lines changed

3 files changed

+58
-31
lines changed

.github/workflows/publish-cdk-command-manually.yml

+56-28
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Commit and Push Changes
8484
uses: stefanzweifel/git-auto-commit-action@v4
8585
with:
86-
file_pattern: airbyte-cdk/python/setup.py airbyte-cdk/python/.bumpversion.cfg airbyte-cdk/python/CHANGELOG.md
86+
file_pattern: airbyte-cdk/python/setup.py airbyte-cdk/python/.bumpversion.cfg airbyte-cdk/python/CHANGELOG.md airbyte-cdk/python/Dockerfile
8787
commit_message: 🤖 Bump ${{ github.event.inputs.release-type }} version of Airbyte CDK
8888
commit_user_name: Octavia Squidington III
8989
commit_user_email: [email protected]
@@ -194,33 +194,6 @@ jobs:
194194
env:
195195
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
196196
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
197-
- name: Post success to Slack channel dev-connectors-extensibility
198-
uses: slackapi/[email protected]
199-
continue-on-error: true
200-
with:
201-
channel-id: C04J1M66D8B
202-
payload: |
203-
{
204-
"text": "A new version of Airbyte CDK has been released!",
205-
"blocks": [
206-
{
207-
"type": "section",
208-
"text": {
209-
"type": "mrkdwn",
210-
"text": "A new version of Airbyte CDK has been released with changelog: ${{ github.event.inputs.changelog-message }}!\n\n"
211-
}
212-
},
213-
{
214-
"type": "section",
215-
"text": {
216-
"type": "mrkdwn",
217-
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n"
218-
}
219-
}
220-
]
221-
}
222-
env:
223-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }}
224197
- name: Post failure to Slack channel dev-connectors-extensibility
225198
if: ${{ failure() }}
226199
uses: slackapi/[email protected]
@@ -286,6 +259,61 @@ jobs:
286259
./tools/integrations/manage.sh publish airbyte-cdk/python false
287260
attempt_limit: 3
288261
attempt_delay: 5000 in # ms
262+
- name: Post success to Slack channel dev-connectors-extensibility
263+
uses: slackapi/[email protected]
264+
continue-on-error: true
265+
with:
266+
channel-id: C04J1M66D8B
267+
payload: |
268+
{
269+
"text": "A new version of Airbyte CDK has been released!",
270+
"blocks": [
271+
{
272+
"type": "section",
273+
"text": {
274+
"type": "mrkdwn",
275+
"text": "A new version of Airbyte CDK has been released with changelog: ${{ github.event.inputs.changelog-message }}!\n\n"
276+
}
277+
},
278+
{
279+
"type": "section",
280+
"text": {
281+
"type": "mrkdwn",
282+
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n"
283+
}
284+
}
285+
]
286+
}
287+
env:
288+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }}
289+
- name: Post failure to Slack channel dev-connectors-extensibility
290+
if: ${{ failure() }}
291+
uses: slackapi/[email protected]
292+
continue-on-error: true
293+
with:
294+
channel-id: C04J1M66D8B
295+
payload: |
296+
{
297+
"text": "Error during `publish-cdk` while publishing Airbyte CDK!",
298+
"blocks": [
299+
{
300+
"type": "section",
301+
"text": {
302+
"type": "mrkdwn",
303+
"text": "Error while publishing Airbyte CDK!"
304+
}
305+
},
306+
{
307+
"type": "section",
308+
"text": {
309+
"type": "mrkdwn",
310+
"text": "See details on <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}|GitHub>\n"
311+
}
312+
}
313+
]
314+
}
315+
env:
316+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN_AIRBYTE_TEAM }}
289317

290318
# In case of self-hosted EC2 errors, remove this block.
291319
stop-publish-docker-image-runner-0:

airbyte-cdk/python/.bumpversion.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ current_version = 0.29.1
33
commit = False
44

55
[bumpversion:file:setup.py]
6-
76
[bumpversion:file:Dockerfile]

airbyte-cdk/python/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN apk --no-cache upgrade \
1010
&& apk --no-cache add tzdata build-base
1111

1212
# install airbyte-cdk
13-
RUN pip install --prefix=/install airbyte-cdk==0.29.0
13+
RUN pip install --prefix=/install airbyte-cdk==0.29.1
1414

1515
# build a clean environment
1616
FROM base
@@ -32,5 +32,5 @@ ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3232
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3333

3434
# needs to be the same as CDK
35-
LABEL io.airbyte.version=0.29.0
35+
LABEL io.airbyte.version=0.29.1
3636
LABEL io.airbyte.name=airbyte/source-declarative-manifest

0 commit comments

Comments
 (0)