Skip to content

Publish Docker Image #2

Publish Docker Image

Publish Docker Image #2

Workflow file for this run

name: Publish Docker Image
on:
push:
branches:
- main
jobs:
push-to-registry:
name: Push to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract meta information
id: meta
uses: docker/metadata-action@v3
with:
images: aliakkas006255/healthcare-appointment-system
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}