Spaces:
Configuration error
Configuration error
Merge remote-tracking branch 'origin/develop'
Browse files
.github/workflows/ci-cd.yml
CHANGED
@@ -83,4 +83,26 @@ jobs:
|
|
83 |
git fetch origin
|
84 |
git checkout main
|
85 |
git merge --no-ff origin/develop
|
86 |
-
git push origin main
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
git fetch origin
|
84 |
git checkout main
|
85 |
git merge --no-ff origin/develop
|
86 |
+
git push origin main
|
87 |
+
|
88 |
+
sync-develop:
|
89 |
+
needs: merge-to-main
|
90 |
+
runs-on: ubuntu-latest
|
91 |
+
steps:
|
92 |
+
- name: Checkout Repository
|
93 |
+
uses: actions/checkout@v3
|
94 |
+
with:
|
95 |
+
fetch-depth: 0
|
96 |
+
|
97 |
+
- name: Set up Git authentication
|
98 |
+
run: |
|
99 |
+
git config --global user.name "GitHub Actions"
|
100 |
+
git config --global user.email "[email protected]"
|
101 |
+
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
|
102 |
+
|
103 |
+
- name: Sync Develop with Main
|
104 |
+
run: |
|
105 |
+
git fetch origin
|
106 |
+
git checkout develop
|
107 |
+
git merge --no-ff origin/main
|
108 |
+
git push origin develop
|
.github/workflows/deploy.yml
CHANGED
@@ -4,6 +4,10 @@ on:
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
|
|
|
|
|
|
|
|
7 |
|
8 |
jobs:
|
9 |
deploy:
|
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
7 |
+
workflow_run:
|
8 |
+
workflows: ["CI/CD Pipeline"]
|
9 |
+
types:
|
10 |
+
- completed
|
11 |
|
12 |
jobs:
|
13 |
deploy:
|
.github/workflows/docker-build.yml
CHANGED
@@ -4,6 +4,10 @@ on:
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
|
|
|
|
|
|
|
|
7 |
|
8 |
jobs:
|
9 |
build-and-push:
|
|
|
4 |
push:
|
5 |
branches:
|
6 |
- main
|
7 |
+
workflow_run:
|
8 |
+
workflows: ["CI/CD Pipeline"]
|
9 |
+
types:
|
10 |
+
- completed
|
11 |
|
12 |
jobs:
|
13 |
build-and-push:
|