Adding the configuration for gitea

This commit is contained in:
Ketan Patel committed 2025-09-14 19:03:07 -04:00
1 parent 85ab503afb
commit 33ca04526c
2 files changed
+30 -33

No files matched your search

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