Create build-publish-dev.yml

This commit is contained in:
Sai Raj 2023-01-11 00:02:52 +05:30 committed by GitHub
parent 1d61c9a487
commit d7a966f514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/build-publish-dev.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Docker Build dev
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{secrets.DOCKER_HUB_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB_PASS}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file dev_Dockerfile --tag ranchimallfze/flosight:dev
- name: Docker Push
run: docker push ranchimallfze/flosight:dev