add real workflow
هذا الالتزام موجود في:
30
.gitea/workflows/ci.yaml
Normal file
30
.gitea/workflows/ci.yaml
Normal file
@@ -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
|
||||||
المرجع في مشكلة جديدة
حظر مستخدم