diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..f586c03dd --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,20 @@ +## Describe your changes + +Please include a summary of the changes and the related issue/task. Please also include relevant motivation and context. List any dependencies that are required for this change, including links to other pull requests/branches in other repositories if applicable. + +## Issue ticket number and Jira link + +Please include the Jira Ticket Number and Link for this issue/task. + +## Checklist before requesting a review +- [ ] I have performed a self-review of my code +- [ ] Ensure the target / base branch for any feature PR is set to `dev` not main (the only exception to this is releases from `dev` and hotfix branches) + +## Checklist for conducting a review +- [ ] Review the code changes and make sure they all make sense and are necessary. +- [ ] Pull the PR branch locally and test by running through workflow and making sure everything works as it is supposed to. + +## Workflow + +Owner of the Pull Request will be responsible for merge after all requirements are met, including approval from at least one reviewer. Additional changes made after a review will dismiss any approvals and require re-review of the additional updates. Auto merging can be enabled below if additional changes are likely not to be needed. The bot will auto assign reviewers to your Pull Request for you. + diff --git a/.github/workflows/automated-tests-ci.yml b/.github/workflows/automated-tests-ci.yml index c9289cc23..e06bafc62 100644 --- a/.github/workflows/automated-tests-ci.yml +++ b/.github/workflows/automated-tests-ci.yml @@ -2,7 +2,7 @@ name: Automated Tests CI on: pull_request: - branches: [ master ] + branches: [ main, dev ] workflow_dispatch: jobs: diff --git a/.github/workflows/docker-cd-dev.yml b/.github/workflows/docker-cd-dev.yml new file mode 100644 index 000000000..7587c0887 --- /dev/null +++ b/.github/workflows/docker-cd-dev.yml @@ -0,0 +1,27 @@ +name: Docker Development Image CD + +on: + push: + branches: [ dev ] + workflow_dispatch: + +jobs: + + docker-cd: + runs-on: ubuntu-latest + steps: + + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Build and push Server Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: codexrems/crd:REMSvExperimental diff --git a/.github/workflows/docker-cd.yml b/.github/workflows/docker-cd.yml index 7bb11971a..c305d1ac5 100644 --- a/.github/workflows/docker-cd.yml +++ b/.github/workflows/docker-cd.yml @@ -2,7 +2,7 @@ name: Docker Image CD on: push: - branches: [ master ] + branches: [ main ] workflow_dispatch: jobs: diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 751f157ed..16da284e2 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -2,7 +2,7 @@ name: Docker Image CI on: pull_request: - branches: [ master ] + branches: [ main, dev ] workflow_dispatch: jobs: diff --git a/server/build.gradle b/server/build.gradle index 438feec4b..39830da8b 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -131,7 +131,7 @@ task embedCdsLibrary() { if (project.hasProperty('branch')) { cloneCdsLibraryScript(branch) } else { - cloneCdsLibraryScript('master') + cloneCdsLibraryScript('main') } } }