Skip to content

Commit

Permalink
Update .github/workflows/cdk-publish.yml
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ChristoGrab and coderabbitai[bot] authored Nov 18, 2024
1 parent 87acda0 commit 7df3955
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cdk-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,16 @@ jobs:

- name: Get CDK version
run: |
cdk_version="$(poetry version --short)"
cdk_version="$(poetry version --short | tr -d '[:space:]')"
echo "CDK_VERSION=$cdk_version" >> $GITHUB_ENV
- name: Check if tag already exists
run: |
tag="airbyte/source-declarative-manifest:${{ env.CDK_VERSION}}-${{ github.run_number }}"
if docker manifest inspect $tag > /dev/null 2>&1; then
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then
echo "The tag $tag already exists on Dockerhub. Skipping publish to prevent overwrite."
exit 1
fi
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down

0 comments on commit 7df3955

Please sign in to comment.