Skip to content

Commit a41eb90

Browse files
authored
Update docker-image.yml
1 parent 77e85c1 commit a41eb90

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/docker-image.yml

+20-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,29 @@ name: Docker Image CI
33
on:
44
push:
55
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
86

97
jobs:
10-
118
build:
12-
139
runs-on: ubuntu-latest
1410

1511
steps:
16-
- uses: actions/checkout@v4
17-
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
20+
-
21+
name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
-
24+
name: Build and push
25+
uses: docker/build-push-action@v5
26+
with:
27+
context: .
28+
file: ./Dockerfile
29+
push: true
30+
tags: |
31+
modularminds/flexibase-db:latest

0 commit comments

Comments
 (0)