Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 1a58529

Browse files
committed
Update repository names for pushing to official Docker Hub repository
1 parent 7f82c00 commit 1a58529

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/docker-cbdb-build-containers.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
buildkitd-flags: --debug
106106

107107
# Build the Docker image locally for testing
108-
- name: Build Docker image for cbdb-build-${{ matrix.platform }}
108+
- name: Build Docker image for incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
109109
if: ${{ steps.platform-filter.outputs[matrix.platform] == 'true' }}
110110
uses: docker/build-push-action@v6
111111
with:
@@ -114,11 +114,11 @@ jobs:
114114
load: true # Load into local Docker daemon for testing
115115
# Use caching for faster builds
116116
cache-from: |
117-
type=registry,ref=${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }}:latest
117+
type=registry,ref=apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
118118
type=gha,scope=docker-cbdb-build-${{ matrix.platform }}
119119
cache-to: type=gha,mode=max,scope=docker-cbdb-build-${{ matrix.platform }}
120120
tags: |
121-
cbdb-build-${{ matrix.platform }}:latest
121+
incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
122122
# Add metadata labels for better image tracking
123123
labels: |
124124
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
@@ -139,7 +139,7 @@ jobs:
139139
docker run -d \
140140
-h cdw \
141141
--name cbdb-build-${{ matrix.platform }}-test \
142-
cbdb-build-${{ matrix.platform }}:latest \
142+
incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest \
143143
bash \
144144
-c "sleep 30"
145145
docker exec cbdb-build-${{ matrix.platform }}-test pytest \
@@ -171,11 +171,11 @@ jobs:
171171
context: ./images/docker/cbdb/build/${{ matrix.platform }}
172172
push: true
173173
cache-from: |
174-
type=registry,ref=${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }}:latest
174+
type=registry,ref=apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
175175
type=gha,scope=docker-cbdb-build-${{ matrix.platform }}
176176
tags: |
177-
${{ secrets.DOCKERHUB_USER }}/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
178-
${{ secrets.DOCKERHUB_USER }}/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}
177+
apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-latest
178+
apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}
179179
labels: |
180180
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
181181
org.opencontainers.image.revision=${{ github.sha }}
@@ -201,7 +201,7 @@ jobs:
201201
202202
if [[ "${{ steps.test.outcome }}" == "success" && "${{ steps.platform-filter.outputs[matrix.platform] }}" == "true" ]]; then
203203
echo "#### 🐳 Docker Image" >> $GITHUB_STEP_SUMMARY
204-
echo "- **Repository**: [\`${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }}\`](https://hub.docker.com/r/${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }})" >> $GITHUB_STEP_SUMMARY
204+
echo "- **Repository**: [\`apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}\`](https://hub.docker.com/r/apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }})" >> $GITHUB_STEP_SUMMARY
205205
echo "- **Tags Pushed**:" >> $GITHUB_STEP_SUMMARY
206206
echo " - \`latest\`" >> $GITHUB_STEP_SUMMARY
207207
echo " - \`${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}\`" >> $GITHUB_STEP_SUMMARY
@@ -210,9 +210,9 @@ jobs:
210210
echo "#### 📋 Quick Reference" >> $GITHUB_STEP_SUMMARY
211211
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
212212
echo "# Pull the image" >> $GITHUB_STEP_SUMMARY
213-
echo "docker pull ${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }}:${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
213+
echo "docker pull apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
214214
echo "" >> $GITHUB_STEP_SUMMARY
215215
echo "# View image details" >> $GITHUB_STEP_SUMMARY
216-
echo "docker inspect ${{ secrets.DOCKERHUB_USER }}/cbdb-build-${{ matrix.platform }}:${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
216+
echo "docker inspect apache/incubator-cloudberry:cbdb-build-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
217217
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
218218
fi

.github/workflows/docker-cbdb-test-containers.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
buildkitd-flags: --debug
105105

106106
# Build the Docker image locally for testing
107-
- name: Build Docker image for cbdb-test-${{ matrix.platform }}
107+
- name: Build Docker image for incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
108108
if: ${{ steps.platform-filter.outputs[matrix.platform] == 'true' }}
109109
uses: docker/build-push-action@v6
110110
with:
@@ -113,11 +113,11 @@ jobs:
113113
load: true # Load into local Docker daemon for testing
114114
# Use caching for faster builds
115115
cache-from: |
116-
type=registry,ref=${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }}:latest
116+
type=registry,ref=apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
117117
type=gha,scope=docker-cbdb-test-${{ matrix.platform }}
118118
cache-to: type=gha,mode=max,scope=docker-cbdb-test-${{ matrix.platform }}
119119
tags: |
120-
cbdb-test-${{ matrix.platform }}:latest
120+
incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
121121
# Add metadata labels for better image tracking
122122
labels: |
123123
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
@@ -133,11 +133,11 @@ jobs:
133133
context: ./images/docker/cbdb/test/${{ matrix.platform }}
134134
push: true
135135
cache-from: |
136-
type=registry,ref=${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }}:latest
136+
type=registry,ref=apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
137137
type=gha,scope=docker-cbdb-test-${{ matrix.platform }}
138138
tags: |
139-
${{ secrets.DOCKERHUB_USER }}/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
140-
${{ secrets.DOCKERHUB_USER }}/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}
139+
apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-latest
140+
apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}
141141
labels: |
142142
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
143143
org.opencontainers.image.revision=${{ github.sha }}
@@ -163,7 +163,7 @@ jobs:
163163
164164
if [[ "${{ steps.platform-filter.outputs[matrix.platform] }}" == "true" ]]; then
165165
echo "#### 🐳 Docker Image" >> $GITHUB_STEP_SUMMARY
166-
echo "- **Repository**: [\`${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }}\`](https://hub.docker.com/r/${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }})" >> $GITHUB_STEP_SUMMARY
166+
echo "- **Repository**: [\`apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}\`](https://hub.docker.com/r/apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }})" >> $GITHUB_STEP_SUMMARY
167167
echo "- **Tags Pushed**:" >> $GITHUB_STEP_SUMMARY
168168
echo " - \`latest\`" >> $GITHUB_STEP_SUMMARY
169169
echo " - \`${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}\`" >> $GITHUB_STEP_SUMMARY
@@ -172,9 +172,9 @@ jobs:
172172
echo "#### 📋 Quick Reference" >> $GITHUB_STEP_SUMMARY
173173
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
174174
echo "# Pull the image" >> $GITHUB_STEP_SUMMARY
175-
echo "docker pull ${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }}:${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
175+
echo "docker pull apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
176176
echo "" >> $GITHUB_STEP_SUMMARY
177177
echo "# View image details" >> $GITHUB_STEP_SUMMARY
178-
echo "docker inspect ${{ secrets.DOCKERHUB_USER }}/cbdb-test-${{ matrix.platform }}:${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
178+
echo "docker inspect apache/incubator-cloudberry:cbdb-test-${{ matrix.platform }}-${{ steps.version.outputs.BUILD_DATE }}-${{ steps.version.outputs.SHA_SHORT }}" >> $GITHUB_STEP_SUMMARY
179179
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
180180
fi

0 commit comments

Comments
 (0)