Skip to content

Commit 249fa23

Browse files
authored
ci: disable SDM publish step (#81)
1 parent bbf704e commit 249fa23

File tree

1 file changed

+77
-77
lines changed

1 file changed

+77
-77
lines changed

.github/workflows/pypi_publish.yml

Lines changed: 77 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -60,80 +60,80 @@ jobs:
6060
- name: Publish to PyPI
6161
uses: pypa/[email protected]
6262

63-
publish_sdm:
64-
name: Publish SDM to DockerHub
65-
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
66-
runs-on: ubuntu-latest
67-
needs: [publish]
68-
environment:
69-
name: DockerHub
70-
url: https://hub.docker.com/r/airbyte/source-declarative-manifest/tags
71-
72-
steps:
73-
- uses: actions/checkout@v4
74-
with:
75-
fetch-depth: 0
76-
77-
- name: Set Version (workflow_dispatch)
78-
if: github.event_name == 'workflow_dispatch'
79-
run: |
80-
VERSION=${{ github.event.inputs.version }}
81-
echo "Version input set to '${VERSION}'"
82-
# Remove the 'v' prefix if it exists
83-
VERSION=${VERSION#v}
84-
echo "Setting version to '$VERSION'"
85-
echo "VERSION=${VERSION}" >> $GITHUB_ENV
86-
87-
- name: Set Version (tag)
88-
if: startsWith(github.ref, 'refs/tags/v')
89-
run: |
90-
VERSION=${{ github.ref_name }}
91-
echo "Version ref set to '${VERSION}'"
92-
# Remove the 'v' prefix if it exists
93-
VERSION=${VERSION#v}
94-
echo "Setting version to '$VERSION'"
95-
echo "VERSION=${VERSION}" >> $GITHUB_ENV
96-
97-
# We need to download the build artifact again because the previous job was on a different runner
98-
- name: Download Build Artifact
99-
uses: actions/download-artifact@v4
100-
with:
101-
name: Packages-${{ github.run_id }}
102-
path: dist
103-
104-
- name: Set up QEMU for multi-platform builds
105-
uses: docker/setup-qemu-action@v3
106-
107-
- name: Set up Docker Buildx
108-
uses: docker/setup-buildx-action@v3
109-
110-
- name: Login to Docker Hub
111-
uses: docker/login-action@v3
112-
with:
113-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
114-
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
115-
116-
- name: Check for existing tag
117-
run: |
118-
tag="airbyte/source-declarative-manifest:${{ env.VERSION }}"
119-
if [ -z "$tag" ]; then
120-
echo "Error: VERSION is not set. Ensure the tag follows the format 'refs/tags/vX.Y.Z'."
121-
exit 1
122-
fi
123-
echo "Checking if tag '$tag' exists on DockerHub..."
124-
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then
125-
echo "The tag '$tag' already exists on DockerHub. Skipping publish to prevent overwrite."
126-
exit 1
127-
fi
128-
echo "No existing tag '$tag' found. Proceeding with publish."
129-
130-
- name: Build and push
131-
uses: docker/build-push-action@v5
132-
with:
133-
context: .
134-
platforms: linux/amd64,linux/arm64
135-
push: true
136-
tags: |
137-
airbyte/source-declarative-manifest:latest
138-
airbyte/source-declarative-manifest:${{ env.VERSION }}
139-
airbyte/source-declarative-manifest:${{ github.sha }}
63+
# publish_sdm:
64+
# name: Publish SDM to DockerHub
65+
# if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
66+
# runs-on: ubuntu-latest
67+
# needs: [publish]
68+
# environment:
69+
# name: DockerHub
70+
# url: https://hub.docker.com/r/airbyte/source-declarative-manifest/tags
71+
72+
# steps:
73+
# - uses: actions/checkout@v4
74+
# with:
75+
# fetch-depth: 0
76+
77+
# - name: Set Version (workflow_dispatch)
78+
# if: github.event_name == 'workflow_dispatch'
79+
# run: |
80+
# VERSION=${{ github.event.inputs.version }}
81+
# echo "Version input set to '${VERSION}'"
82+
# # Remove the 'v' prefix if it exists
83+
# VERSION=${VERSION#v}
84+
# echo "Setting version to '$VERSION'"
85+
# echo "VERSION=${VERSION}" >> $GITHUB_ENV
86+
87+
# - name: Set Version (tag)
88+
# if: startsWith(github.ref, 'refs/tags/v')
89+
# run: |
90+
# VERSION=${{ github.ref_name }}
91+
# echo "Version ref set to '${VERSION}'"
92+
# # Remove the 'v' prefix if it exists
93+
# VERSION=${VERSION#v}
94+
# echo "Setting version to '$VERSION'"
95+
# echo "VERSION=${VERSION}" >> $GITHUB_ENV
96+
97+
# # We need to download the build artifact again because the previous job was on a different runner
98+
# - name: Download Build Artifact
99+
# uses: actions/download-artifact@v4
100+
# with:
101+
# name: Packages-${{ github.run_id }}
102+
# path: dist
103+
104+
# - name: Set up QEMU for multi-platform builds
105+
# uses: docker/setup-qemu-action@v3
106+
107+
# - name: Set up Docker Buildx
108+
# uses: docker/setup-buildx-action@v3
109+
110+
# - name: Login to Docker Hub
111+
# uses: docker/login-action@v3
112+
# with:
113+
# username: ${{ secrets.DOCKER_HUB_USERNAME }}
114+
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
115+
116+
# - name: Check for existing tag
117+
# run: |
118+
# tag="airbyte/source-declarative-manifest:${{ env.VERSION }}"
119+
# if [ -z "$tag" ]; then
120+
# echo "Error: VERSION is not set. Ensure the tag follows the format 'refs/tags/vX.Y.Z'."
121+
# exit 1
122+
# fi
123+
# echo "Checking if tag '$tag' exists on DockerHub..."
124+
# if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then
125+
# echo "The tag '$tag' already exists on DockerHub. Skipping publish to prevent overwrite."
126+
# exit 1
127+
# fi
128+
# echo "No existing tag '$tag' found. Proceeding with publish."
129+
130+
# - name: Build and push
131+
# uses: docker/build-push-action@v5
132+
# with:
133+
# context: .
134+
# platforms: linux/amd64,linux/arm64
135+
# push: true
136+
# tags: |
137+
# airbyte/source-declarative-manifest:latest
138+
# airbyte/source-declarative-manifest:${{ env.VERSION }}
139+
# airbyte/source-declarative-manifest:${{ github.sha }}

0 commit comments

Comments
 (0)