Adding the workflow for the postfix

This commit is contained in:
Ketan Patel committed 2025-08-01 13:37:00 -04:00
1 parent b0a1ccd824
commit 58d0e27abd
2 files changed
+94

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build the Docker image
run: docker build . -t k2patel/postfix:latest
- name: Push the Docker image
run: docker push k2patel/postfix