From b61ec59c00de532c8ab5cf5c2d64646bf3ba6f42 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Jul 2026 01:02:36 +0000 Subject: [PATCH] add real workflow --- .gitea/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..75ecabf --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: Ghaymah CI/CD + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Login to Docker Hub + run: | + echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login \ + -u "${{ secrets.DOCKERHUB_USERNAME }}" \ + --password-stdin + + - name: Build Docker Image + run: | + docker build \ + -f q1-deploy-monitor/Dockerfile \ + -t mohamedsaleh33/ghaymah-sre-api:v2 . + + - name: Push Docker Image + run: | + docker push mohamedsaleh33/ghaymah-sre-api:v2