Skip to content

Update main.yml

Update main.yml #6

Workflow file for this run

name: Build and Push Docker Image to Docker Hub
on: push
jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: build and push docker image to registry
uses: docker/build-push-action@v5
with:
context: Dockerfile
push: true
tags: vikram1202/picpilot:latest