Skip to content

Commit f9bf2d1

Browse files
committed
Use the docker action to push to Dockerhub
1 parent 1b13911 commit f9bf2d1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ jobs:
1717

1818
- name: Build the image
1919
run: docker build -t mendhak/http-https-echo:latest .
20+
- name: Log in to Docker Hub
21+
uses: docker/login-action@v1
22+
with:
23+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
24+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
25+
- name: Push to Docker Hub
26+
uses: docker/build-push-action@v2
27+
with:
28+
push: true
29+
tags: mendhak/test-image:x

0 commit comments

Comments
 (0)