Skip to content

Commit 63b3733

Browse files
authored
Update docker-image.yml
1 parent e7d85e9 commit 63b3733

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,16 @@ jobs:
1616
- uses: actions/checkout@v4
1717
- name: Build the Docker image
1818
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
19+
-
20+
name: Login to DockerHub
21+
uses: docker/login-action@v1
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
-
26+
name: Build and push
27+
id: docker_build
28+
uses: docker/build-push-action@v2
29+
with:
30+
push: true
31+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/go-mcp-postgres:latest

0 commit comments

Comments
 (0)