Skip to content

Commit cb0efd6

Browse files
committed
ci: set docker hub image push
1 parent d9c395d commit cb0efd6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/nodejs.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,22 @@ jobs:
6868
with:
6969
name: smelly-test-vscode-extension
7070
path: ./vscode/*.vsix
71+
72+
send_docker_image_to_hub:
73+
runs-on: ubuntu-latest
74+
needs: build
75+
steps:
76+
- uses: actions/checkout@v4
77+
- name: login to docker hub
78+
id: docker-hub
79+
env:
80+
username: ${{secrets.DOCKERHUB_USERNAME}}
81+
password: ${{secrets.DOCKERHUB_TOKEN}}
82+
run: |
83+
docker login -u $username -p $password
84+
- name: Build Docker Image
85+
run: |
86+
cd cli && docker build -t smelly-test .
87+
- name: Push Docker Image
88+
run: |
89+
docker push ${{secrets.DOCKERHUB_USERNAME}}/smelly-test:latest

0 commit comments

Comments
 (0)