Create docker-image.yml
This commit is contained in:
parent
36fe4004d3
commit
7b92f9d1f1
25
.github/workflows/docker-image.yml
vendored
Normal file
25
.github/workflows/docker-image.yml
vendored
Normal 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)
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user