Skip to content

Build and Push Docker Image #4

Build and Push Docker Image

Build and Push Docker Image #4

name: Build and Push Docker Image
on:
push:
branches:
- main # Change this to the branch you want to trigger the workflow on
workflow_dispatch: # This allows manual triggering
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker Image
run: docker build -t ibeech/azdoworkitemform:latest .
- name: Push Docker Image
run: docker push ibeech/azdoworkitemform:latest