Skip to content

Update docker-image.yml #9

Update docker-image.yml

Update docker-image.yml #9

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
# - name: Login to Docker Hub
# run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
run: |
docker build -t mjpeg_streamer:$(date +%s) .
docker tag mjpeg_streamer:latest icvision/mjpeg_streamer:latest
# - name: Push Docker Image
# run: |
# docker push ${{ secrets.DOCKERHUB_USERNAME }}/mjpeg_streamer:latest