Skip to content

Commit cfb3e5c

Browse files
authored
chore: remove pushes to dockerhub (#2057)
chore: remove pushes to dockerhub
1 parent 0ddc3b0 commit cfb3e5c

3 files changed

Lines changed: 0 additions & 138 deletions

File tree

.github/workflows/mysql.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -230,49 +230,3 @@ jobs:
230230
parent: false
231231
process_gcloudignore: false
232232

233-
deploy-mysql-dockerhub:
234-
runs-on: ubuntu-latest
235-
needs: mysql-e2e-tests
236-
if: |
237-
github.ref == 'refs/heads/master' ||
238-
startsWith(github.ref, 'refs/tags/') ||
239-
startsWith(github.ref, 'refs/heads/feature.')
240-
241-
steps:
242-
- name: Download Docker image
243-
uses: actions/download-artifact@v6
244-
with:
245-
name: mysql-docker-image
246-
path: /tmp
247-
248-
- name: Load Docker image
249-
run: docker load --input /tmp/mysql-image.tar
250-
251-
- name: Log in to Docker Hub
252-
uses: docker/login-action@v3
253-
with:
254-
username: ${{ secrets.DOCKER_USER }}
255-
password: ${{ secrets.DOCKER_PASS }}
256-
257-
- name: Determine Docker tag
258-
id: docker-tag
259-
run: |
260-
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
261-
DOCKER_TAG="${{ github.sha }}"
262-
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
263-
DOCKER_TAG="${{ github.ref_name }}"
264-
elif [[ "${{ github.ref }}" == refs/heads/feature.* ]]; then
265-
DOCKER_TAG="${{ github.ref_name }}"
266-
else
267-
echo "Not pushing to DockerHub for ref=${{ github.ref }}"
268-
exit 0
269-
fi
270-
echo "tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT
271-
echo "full_tag=${{ secrets.DOCKERHUB_REPO }}:${DOCKER_TAG}-mysql" >> $GITHUB_OUTPUT
272-
273-
- name: Tag and push Docker image
274-
if: steps.docker-tag.outputs.tag != ''
275-
run: |
276-
docker tag app:build ${{ steps.docker-tag.outputs.full_tag }}
277-
docker images
278-
docker push ${{ steps.docker-tag.outputs.full_tag }}

.github/workflows/postgres.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -236,49 +236,3 @@ jobs:
236236
parent: false
237237
process_gcloudignore: false
238238

239-
deploy-postgres-dockerhub:
240-
runs-on: ubuntu-latest
241-
needs: postgres-e2e-tests
242-
if: |
243-
github.ref == 'refs/heads/master' ||
244-
startsWith(github.ref, 'refs/tags/') ||
245-
startsWith(github.ref, 'refs/heads/feature.')
246-
247-
steps:
248-
- name: Download Docker image
249-
uses: actions/download-artifact@v6
250-
with:
251-
name: postgres-docker-image
252-
path: /tmp
253-
254-
- name: Load Docker image
255-
run: docker load --input /tmp/postgres-image.tar
256-
257-
- name: Log in to Docker Hub
258-
uses: docker/login-action@v3
259-
with:
260-
username: ${{ secrets.DOCKER_USER }}
261-
password: ${{ secrets.DOCKER_PASS }}
262-
263-
- name: Determine Docker tag
264-
id: docker-tag
265-
run: |
266-
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
267-
DOCKER_TAG="${{ github.sha }}"
268-
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
269-
DOCKER_TAG="${{ github.ref_name }}"
270-
elif [[ "${{ github.ref }}" == refs/heads/feature.* ]]; then
271-
DOCKER_TAG="${{ github.ref_name }}"
272-
else
273-
echo "Not pushing to DockerHub for ref=${{ github.ref }}"
274-
exit 0
275-
fi
276-
echo "tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT
277-
echo "full_tag=${{ secrets.DOCKERHUB_REPO }}:${DOCKER_TAG}-postgres" >> $GITHUB_OUTPUT
278-
279-
- name: Tag and push Docker image
280-
if: steps.docker-tag.outputs.tag != ''
281-
run: |
282-
docker tag app:build ${{ steps.docker-tag.outputs.full_tag }}
283-
docker images
284-
docker push ${{ steps.docker-tag.outputs.full_tag }}

.github/workflows/spanner.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -243,49 +243,3 @@ jobs:
243243
parent: false
244244
process_gcloudignore: false
245245

246-
deploy-spanner-dockerhub:
247-
runs-on: ubuntu-latest
248-
needs: spanner-e2e-tests
249-
if: |
250-
github.ref == 'refs/heads/master' ||
251-
startsWith(github.ref, 'refs/tags/') ||
252-
startsWith(github.ref, 'refs/heads/feature.')
253-
254-
steps:
255-
- name: Download Docker image
256-
uses: actions/download-artifact@v6
257-
with:
258-
name: spanner-docker-image
259-
path: /tmp
260-
261-
- name: Load Docker image
262-
run: docker load --input /tmp/spanner-image.tar
263-
264-
- name: Log in to Docker Hub
265-
uses: docker/login-action@v3
266-
with:
267-
username: ${{ secrets.DOCKER_USER }}
268-
password: ${{ secrets.DOCKER_PASS }}
269-
270-
- name: Determine Docker tag
271-
id: docker-tag
272-
run: |
273-
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
274-
DOCKER_TAG="${{ github.sha }}"
275-
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
276-
DOCKER_TAG="${{ github.ref_name }}"
277-
elif [[ "${{ github.ref }}" == refs/heads/feature.* ]]; then
278-
DOCKER_TAG="${{ github.ref_name }}"
279-
else
280-
echo "Not pushing to DockerHub for ref=${{ github.ref }}"
281-
exit 0
282-
fi
283-
echo "tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT
284-
echo "full_tag=${{ secrets.DOCKERHUB_REPO }}:${DOCKER_TAG}-spanner" >> $GITHUB_OUTPUT
285-
286-
- name: Tag and push Docker image
287-
if: steps.docker-tag.outputs.tag != ''
288-
run: |
289-
docker tag app:build ${{ steps.docker-tag.outputs.full_tag }}
290-
docker images
291-
docker push ${{ steps.docker-tag.outputs.full_tag }}

0 commit comments

Comments
 (0)