Skip to content

Commit 9049b4b

Browse files
committed
fix: remove dockerhub from build action
1 parent 7da1c5f commit 9049b4b

File tree

1 file changed

+2
-41
lines changed

1 file changed

+2
-41
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ permissions:
1313
packages: write
1414

1515
env:
16-
# Docker Hub credentials
17-
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
18-
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
19-
# Docker Hub image name
20-
IMAGE_NAME: hermeznetwork/cdk-erigon
2116
# GHCR image name
2217
GHCR_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/cdk-erigon
2318

@@ -75,28 +70,21 @@ jobs:
7570
- name: Set up Docker Buildx
7671
uses: docker/setup-buildx-action@v3
7772

78-
- name: Login to Docker Hub
79-
uses: docker/login-action@v3
80-
with:
81-
username: ${{ env.DOCKERHUB_USERNAME }}
82-
password: ${{ env.DOCKERHUB_TOKEN }}
83-
8473
- name: Login to GHCR
8574
uses: docker/login-action@v3
8675
with:
8776
registry: ghcr.io
8877
username: ${{ github.actor }}
8978
password: ${{ secrets.GITHUB_TOKEN }}
9079

91-
- name: Build and push AMD64 image (Docker Hub + GHCR)
80+
- name: Build and push AMD64 image (GHCR)
9281
uses: docker/build-push-action@v6
9382
with:
9483
context: .
9584
file: Dockerfile
9685
push: true
9786
platforms: linux/amd64
9887
tags: |
99-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-amd64
10088
${{ needs.prepare.outputs.ghcr_image_name }}:${{ needs.prepare.outputs.version }}-amd64
10189
10290
build-arm64:
@@ -112,28 +100,21 @@ jobs:
112100
- name: Set up Docker Buildx
113101
uses: docker/setup-buildx-action@v3
114102

115-
- name: Login to Docker Hub
116-
uses: docker/login-action@v3
117-
with:
118-
username: ${{ env.DOCKERHUB_USERNAME }}
119-
password: ${{ env.DOCKERHUB_TOKEN }}
120-
121103
- name: Login to GHCR
122104
uses: docker/login-action@v3
123105
with:
124106
registry: ghcr.io
125107
username: ${{ github.actor }}
126108
password: ${{ secrets.GITHUB_TOKEN }}
127109

128-
- name: Build and push ARM64 image (Docker Hub + GHCR)
110+
- name: Build and push ARM64 image (GHCR)
129111
uses: docker/build-push-action@v6
130112
with:
131113
context: .
132114
file: Dockerfile
133115
push: true
134116
platforms: linux/arm64
135117
tags: |
136-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-arm64
137118
${{ needs.prepare.outputs.ghcr_image_name }}:${{ needs.prepare.outputs.version }}-arm64
138119
139120
create-and-push-manifest:
@@ -143,33 +124,13 @@ jobs:
143124
- name: Set up Docker Buildx
144125
uses: docker/setup-buildx-action@v3
145126

146-
- name: Login to Docker Hub
147-
uses: docker/login-action@v3
148-
with:
149-
username: ${{ env.DOCKERHUB_USERNAME }}
150-
password: ${{ env.DOCKERHUB_TOKEN }}
151-
152127
- name: Login to GHCR
153128
uses: docker/login-action@v3
154129
with:
155130
registry: ghcr.io
156131
username: ${{ github.actor }}
157132
password: ${{ secrets.GITHUB_TOKEN }}
158133

159-
- name: Create and push manifest (Docker Hub)
160-
run: |
161-
docker buildx imagetools create \
162-
--tag ${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }} \
163-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-amd64 \
164-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-arm64
165-
166-
if [ "${{ needs.prepare.outputs.latest_tag }}" == "true" ]; then
167-
docker buildx imagetools create \
168-
--tag ${{ env.IMAGE_NAME }}:latest \
169-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-amd64 \
170-
${{ env.IMAGE_NAME }}:${{ needs.prepare.outputs.version }}-arm64
171-
fi
172-
173134
- name: Create and push manifest (GHCR)
174135
run: |
175136
docker buildx imagetools create \

0 commit comments

Comments
 (0)