Skip to content

Commit 1d83e86

Browse files
author
sai chaithanya
authored
chore(build): update default/build branch from replication to develop (#359)
* updating branch reference from replication to develop - CONTRIBUTING.md - README.md - RELEASE.md - developer-setup.md - GOVERNANCE.md - fetch-libcstor-branch.sh - code-standard.md * updating build branch to 'develop' in github workflow * add ghcr as an container repository to host container images Signed-off-by: mittachaitu <[email protected]>
1 parent 55655aa commit 1d83e86

10 files changed

+53
-37
lines changed

.github/workflows/build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
create:
1818
push:
1919
branches:
20-
- replication
20+
- develop
2121
- 'v*'
2222
paths-ignore:
2323
- 'docs/**'
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
BRANCH="${GITHUB_REF##*/}"
7373
CI_TAG=${BRANCH#v}-ci
74-
if [ ${BRANCH} = "replication" ]; then
74+
if [ ${BRANCH} = "develop" ]; then
7575
CI_TAG="ci"
7676
fi
7777
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
@@ -90,6 +90,7 @@ jobs:
9090
images: |
9191
${{ env.IMAGE_ORG }}/cstor-istgt
9292
quay.io/${{ env.IMAGE_ORG }}/cstor-istgt
93+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-istgt
9394
tag-latest: false
9495
tag-custom-only: true
9596
tag-custom: |
@@ -124,6 +125,13 @@ jobs:
124125
username: ${{ secrets.QUAY_USERNAME }}
125126
password: ${{ secrets.QUAY_TOKEN }}
126127

128+
- name: Login to GHCR
129+
uses: docker/login-action@v1
130+
with:
131+
registry: ghcr.io
132+
username: ${{ github.actor }}
133+
password: ${{ secrets.GITHUB_TOKEN }}
134+
127135
- name: Build & Push Image
128136
uses: docker/build-push-action@v2
129137
with:

.github/workflows/pull_request.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ on:
2121
- 'changelogs/**'
2222
- '*.md'
2323
branches:
24-
# on pull requests to master and release branches
25-
- replication
24+
# on pull requests to develop and release branches
25+
- develop
2626
- 'v*'
2727

2828
jobs:

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
images: |
5353
${{ env.IMAGE_ORG }}/cstor-istgt
5454
quay.io/${{ env.IMAGE_ORG }}/cstor-istgt
55+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-istgt
5556
tag-latest: true
5657
tag-semver: |
5758
{{version}}
@@ -85,6 +86,13 @@ jobs:
8586
username: ${{ secrets.QUAY_USERNAME }}
8687
password: ${{ secrets.QUAY_TOKEN }}
8788

89+
- name: Login to GHCR
90+
uses: docker/login-action@v1
91+
with:
92+
registry: ghcr.io
93+
username: ${{ github.actor }}
94+
password: ${{ secrets.GITHUB_TOKEN }}
95+
8896
- name: Build & Push Image
8997
uses: docker/build-push-action@v2
9098
with:

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ istgt is an Apache 2.0 Licensed project and all your commits should be signed wi
4747
* Find an issue to work on or create a new issue. The issues are maintained at [openebs/istgt](https://github.com/openebs/istgt/issues). You can pick up from a list of [good-first-issues](https://github.com/openebs/openebs/labels/good%20first%20issue).
4848
* Claim your issue by commenting your intent to work on it to avoid duplication of efforts.
4949
* Fork the repository on GitHub.
50-
* Create a branch from where you want to base your work (usually from replication branch).
50+
* Create a branch from where you want to base your work (usually from develop branch).
5151
* Make your changes. If you are working on code contributions, please see [Setting up the Development Environment](#setting-up-your-development-environment).
5252
* Commit your changes by making sure the commit messages convey the need and notes about the commit.
5353
* Please make sure than your code is aligned with the standard mentioned at [code-standard](code-standard.md).
@@ -56,7 +56,7 @@ istgt is an Apache 2.0 Licensed project and all your commits should be signed wi
5656
* Submit a pull request to the original repository. See [Pull Request checklist](#pull-request-checklist).
5757

5858
## Pull Request Checklist
59-
* Rebase to the current replication branch before submitting your pull request.
59+
* Rebase to the current develop branch before submitting your pull request.
6060
* Commits should be as small as possible. Each commit should follow the checklist below:
6161
- For code changes, add tests relevant to the fixed bug or new feature.
6262
- Pass the compile and tests - includes spell checks, formatting, etc.

GOVERNANCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
This is a OpenEBS sub project and abides by the
2-
[OpenEBS Project Governance](https://github.com/openebs/openebs/blob/master/GOVERNANCE.md).
2+
[OpenEBS Project Governance](https://github.com/openebs/openebs/blob/main/GOVERNANCE.md).

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
[![Build Status](https://travis-ci.org/openebs/istgt.svg?branch=replication)](https://travis-ci.org/openebs/istgt)
1+
[![Build Status](https://github.com/openebs/istgt/actions/workflows/build.yml/badge.svg)](https://github.com/openebs/istgt/actions/workflows/build.yml)
22
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fopenebs%2Fistgt.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fopenebs%2Fistgt?ref=badge_shield)
33
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2738/badge)](https://bestpractices.coreinfrastructure.org/projects/2738)
44
[![Slack](https://img.shields.io/badge/chat!!!-slack-ff1493.svg?style=flat-square)](https://kubernetes.slack.com/messages/openebs)
55

66
### Instructions to check cstyle
77
```sh
8-
Checkout replication branch
8+
Checkout develop branch
99
Do ./cstyle.pl <filename with path>
1010
```
1111
### Building
1212
```bash
13-
git checkout replication
13+
git checkout develop
1414
sudo apt-get install libssl-dev docker.io
1515
sudo apt-get install autoconf
1616
./autogen.sh

RELEASE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Once all the above tests are completed, a main release tagged image is published
2020

2121
istgt is released as container image with versioned tag.
2222

23-
Before creating a release, repo owner needs to create a separate branch from the active branch, which is `replication`. Name of the branch should follow the naming convention of `v.1.9.x`, if release is for v1.9.0.
23+
Before creating a release, repo owner needs to create a separate branch from the active branch, which is `develop`. Name of the branch should follow the naming convention of `v.1.9.x`, if release is for v1.9.0.
2424

2525
Once the release branch is created, changelog from `changelogs/unreleased` needs to be moved to release specific folder `changelogs/v1.9.x`, if release branch is `v1.10.x` then folder will be `changelogs/v1.10.x`.
2626

@@ -32,7 +32,7 @@ Images are published at following location:
3232
https://quay.io/repository/openebs/cstor-istgt?tab=tags
3333
https://hub.docker.com/r/openebs/cstor-istgt/tags
3434

35-
Once a release is created, update the release description with the change log mentioned in `changelog/v1.9.x`. Once the change logs are updated in release, repo owner needs to create a PR to `replication` with the following details:
35+
Once a release is created, update the release description with the change log mentioned in `changelog/v1.9.x`. Once the change logs are updated in release, repo owner needs to create a PR to `develop` with the following details:
3636
1. update the changelog from `changelog/v1.9.x` to `istgt/CHANGELOG.md`
3737
2. If release is not a RC tag then PR should include the changes to remove `changelog/v1.9.x` folder.
3838
3. If release is a RC tag then PR should include the changes to remove the changelog from `changelog/v1.9.x` which are already mentioned in `istgt/CHANGELOG.md` as part of step number 1.

code-standard.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Sign your work
44

5-
We use the Developer Certificate of Origin (DCO) as an additional safeguard for the OpenEBS project. This is a well established and widely used mechanism to assure that contributors have confirmed their right to license their contribution under the project's license. Please read [dcofile](https://github.com/openebs/openebs/blob/master/contribute/developer-certificate-of-origin). If you can certify it, then just add a line to every git commit message:
5+
We use the Developer Certificate of Origin (DCO) as an additional safeguard for the OpenEBS project. This is a well established and widely used mechanism to assure that contributors have confirmed their right to license their contribution under the project's license. Please read [dcofile](https://github.com/openebs/openebs/blob/main/contribute/developer-certificate-of-origin). If you can certify it, then just add a line to every git commit message:
66

77
```
88
Signed-off-by: Random J Developer <[email protected]>

developer-setup.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ git clone https://github.com/$user/istgt.git
3535
cd istgt
3636
git remote add upstream https://github.com/openebs/istgt.git
3737

38-
# Never push to upstream replication
38+
# Never push to upstream develop
3939
git remote set-url --push upstream no_push
4040

4141
# Confirm that your remotes make sense
@@ -44,7 +44,7 @@ git remote -v
4444

4545
### Instructions to check cstyle
4646
```
47-
Checkout replication branch
47+
Checkout develop branch
4848
Do ./cstyle.pl <filename with path>
4949
```
5050

@@ -80,15 +80,15 @@ Open a terminal on your local host. Change directory to the istgt fork root.
8080
$ cd <path_to_fork_repo>
8181
```
8282

83-
Checkout the replication branch.
83+
Checkout the develop branch.
8484

8585
```sh
86-
$ git checkout replication
87-
Switched to branch 'replication'
88-
Your branch is up-to-date with 'origin/replication'.
86+
$ git checkout develop
87+
Switched to branch 'develop'
88+
Your branch is up-to-date with 'origin/develop'.
8989
```
9090

91-
Recall that origin/replication is a branch on your remote GitHub repository.
91+
Recall that origin/develop is a branch on your remote GitHub repository.
9292
Make sure you have the upstream remote openebs/istgt by listing them.
9393

9494
```sh
@@ -104,22 +104,22 @@ $ cd <path_to_fork_repo>
104104
```sh
105105
$ git remote add upstream https://github.com/openebs/istgt.git
106106
```
107-
Fetch all the changes from the upstream replication branch.
107+
Fetch all the changes from the upstream develop branch.
108108

109109
```sh
110-
$ git fetch upstream replication
110+
$ git fetch upstream develop
111111
From https://github.com/openebs/istgt
112-
* branch replication -> FETCH_HEAD
112+
* branch develop -> FETCH_HEAD
113113
```
114114

115-
Rebase your local replication branch with the upstream/replication.
115+
Rebase your local develop branch with the upstream/develop.
116116

117117
```sh
118-
$ git rebase upstream/replication
118+
$ git rebase upstream/develop
119119
First, rewinding head to replay your work on top of it...
120-
Fast-forwarded replication to upstream/replication.
120+
Fast-forwarded develop to upstream/develop.
121121
```
122-
This command applies all the commits from the upstream replication to your local development branch.
122+
This command applies all the commits from the upstream develop to your local development branch.
123123

124124
Check the status of your local branch.
125125

@@ -128,29 +128,29 @@ $ cd <path_to_fork_repo>
128128
On branch develop
129129
nothing to commit, working directory clean
130130
```
131-
Your local repository now has all the changes from the upstream remote. You need to push the changes to your own remote fork which is origin replication.
131+
Your local repository now has all the changes from the upstream remote. You need to push the changes to your own remote fork which is origin develop.
132132

133-
Push the rebased replication to origin replication.
133+
Push the rebased develop to origin develop.
134134

135135
```sh
136-
$ git push origin replication
136+
$ git push origin develop
137137
Username for 'https://github.com': $user
138138
Password for 'https://[email protected]':
139139
Counting objects: 223, done.
140140
Compressing objects: 100% (38/38), done.
141141
Writing objects: 100% (69/69), 8.76 KiB | 0 bytes/s, done.
142142
Total 69 (delta 53), reused 47 (delta 31)
143143
To https://github.com/$user/istgt.git
144-
8e107a9..5035fa1 replication -> replication
144+
8e107a9..5035fa1 develop -> develop
145145
```
146146

147147
### Contributing to a feature or bugfix.
148148

149-
Always start with creating a new branch from replication to work on a new feature or bugfix. Your branch name should have the format XX-descriptive where XX is the issue number you are working on followed by some descriptive text. For example:
149+
Always start with creating a new branch from develop to work on a new feature or bugfix. Your branch name should have the format XX-descriptive where XX is the issue number you are working on followed by some descriptive text. For example:
150150

151151
```sh
152-
$ git checkout replication
153-
# Make sure the replication is rebased with the latest changes as described in previous step.
152+
$ git checkout develop
153+
# Make sure the develop is rebased with the latest changes as described in previous step.
154154
$ git checkout -b 1234-fix-developer-docs
155155
Switched to a new branch '1234-fix-developer-docs'
156156
```
@@ -163,7 +163,7 @@ Happy Hacking!
163163
```sh
164164
# While on your myfeature branch (see above)
165165
git fetch upstream
166-
git rebase upstream/replication
166+
git rebase upstream/develop
167167
```
168168

169169
While you rebase your changes, you must resolve any conflicts that might arise and build and test your changes using the above steps.

fetch-libcstor-branch.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ set -e
3737
#For the moment, we will go with making sure the correct
3838
# branch name is provided as part of the release process.
3939
if [ -z ${TRAVIS_BRANCH} ] ||
40-
[ ${TRAVIS_BRANCH} == "replication" ]; then
41-
LIBCSTOR_BUILD_BRANCH="master"
40+
[ ${TRAVIS_BRANCH} == "develop" ]; then
41+
LIBCSTOR_BUILD_BRANCH="develop"
4242
else
4343
LIBCSTOR_BUILD_BRANCH=${TRAVIS_BRANCH}
4444
fi

0 commit comments

Comments
 (0)