Skip to content

Commit

Permalink
Merge pull request #123 from syntasso/ab/remove-dev-branch
Browse files Browse the repository at this point in the history
Remove dev branch as gate to main
  • Loading branch information
abangser committed May 13, 2024
2 parents 440f2bb + 005ee9b commit aa94388
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,23 +276,6 @@ jobs:
command: |
./scripts/install-jenkins.sh
git-merge-and-push:
executor: machine-medium
steps:
- install_software
- setup_git
- run:
name: Merge dev to main
command: |
git checkout main
git merge --no-ff --no-edit dev
git push origin main
- persist_to_workspace:
root: .
paths:
- .

generate-demo-image-list:
executor: machine-large
steps:
Expand Down Expand Up @@ -330,20 +313,20 @@ jobs:
command: |
./scripts/build-images << parameters.image >>
git-push-to-dev:
git-push-to-main:
executor: machine-medium
steps:
- attach_workspace:
at: .
- setup_git
- run:
name: Push dev
name: Push main
command: |
git add -f demo/
# below command exits 0 when nothing is added
git diff --cached --quiet && exit 0 || true
git commit -m"update demo image list"
git push origin dev
git push origin main
generate-release-distribution:
executor: machine-medium
Expand Down Expand Up @@ -427,16 +410,6 @@ workflows:
requires: [clone-kratix, clone-helm-charts]
- e2e-demo-test-helm-git:
requires: [clone-kratix, clone-helm-charts]
### ONLY DEV
- git-merge-and-push:
requires:
- test
- e2e-demo-test-helm-git
- e2e-demo-test-helm-bucket
filters:
branches:
only: dev
### END ONLY DEV
### ONLY MAIN
- tag-new-version:
requires:
Expand Down Expand Up @@ -476,12 +449,12 @@ workflows:
cron: "0 0 * * 1"
filters:
branches:
only: [dev]
only: [main]
jobs:
- clone-kratix
- generate-demo-image-list:
requires: [clone-kratix]
- git-push-to-dev:
- git-push-to-main:
requires: [generate-demo-image-list]

security-scan:
Expand Down

0 comments on commit aa94388

Please sign in to comment.