Skip to content

Commit 10a2d6c

Browse files
committed
build: add docker login step
1 parent acb9881 commit 10a2d6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/prod-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ env:
2525
DOCKER_HUB_PASSWORD : ${{ secrets.DOCKER_HUB_PASSWORD }}
2626
REPOSITORY_NAME: nmrium-react-wrapper
2727
REPOSITORY_NAMESPACE: nfdi4chem
28-
REPOSITORY_NAME_PROD: nmrxiv-prod
29-
IMAGE: nmrium
3028

3129
jobs:
3230
setup-build-publish-deploy-prod:
@@ -44,10 +42,12 @@ jobs:
4442
service_account_key: ${{ secrets.GKE_SA_KEY }}
4543
project_id: ${{ secrets.GKE_PROJECT }}
4644

47-
# Configure docker to use the gcloud command-line tool as a credential helper
48-
- name: Configure docker
49-
run: |-
50-
gcloud auth configure-docker europe-west3-docker.pkg.dev
45+
# Login to Docker Hub
46+
- name: Log in to Docker Hub
47+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
48+
with:
49+
username: ${{ env.DOCKER_HUB_USERNAME }}
50+
password: ${{ env.DOCKER_HUB_PASSWORD }}
5151

5252
# Get the GKE credentials so we can deploy to the cluster
5353
- name: Get GKE credentials

0 commit comments

Comments
 (0)