Create docker-image.yml

This commit is contained in:
Vivek Teega 2023-01-06 02:20:20 +05:30 committed by GitHub
parent 36fe4004d3
commit 7b92f9d1f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ranchimallfze/flosight:$(date +%s)
- name: Login to Dockerhub
run: docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASS }}
- name: Push to Dockerhub
run: docker push ranchimallfze/flosight:$(date +%s)