Skip to content

Commit 75dcf40

Browse files
committed
ci: attempt to fix login on docker hub
1 parent a92a205 commit 75dcf40

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ env:
1515
jobs:
1616
send_docker_image_to_hub:
1717
runs-on: ubuntu-latest
18-
needs: build
1918
steps:
2019
- uses: actions/checkout@v4
2120
- name: login to docker hub
@@ -28,15 +27,13 @@ jobs:
2827
docker login -u $username -p $password docker.io
2928
- name: Build Docker Image
3029
run: |
31-
cd cli && docker build -t docker.io/library/${{secrets.DOCKERHUB_USERNAME}}/smelly-test .
30+
cd cli && docker build -t ${{secrets.DOCKERHUB_USERNAME}}/smelly-test .
3231
- name: Push Docker Image
3332
run: |
34-
docker push docker.io/library/${{secrets.DOCKERHUB_USERNAME}}/smelly-test:latest
33+
docker push ${{secrets.DOCKERHUB_USERNAME}}/smelly-test:latest
3534
3635
build:
37-
3836
runs-on: ubuntu-latest
39-
4037
steps:
4138
- uses: actions/checkout@v4
4239
- name: Set Environment Variables

0 commit comments

Comments
 (0)