Skip to content

Commit 3582b69

Browse files
authored
chore(build): updating default/build branch from master to develop (#89)
* updating branch reference from master to develop in following files: - CONTRIBUTING.md - GOVERNANCE.md - README.md - RELEASE.md - buildscripts/install-test-dep.sh - code-standard.md - developer-setup.md * chore(workflow): push images to ghcr Signed-off-by: mayank <[email protected]>
1 parent 72b38d8 commit 3582b69

File tree

10 files changed

+71
-39
lines changed

10 files changed

+71
-39
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
create:
1818
push:
1919
branches:
20-
- 'master'
20+
- 'develop'
2121
- 'v*'
2222
paths-ignore:
2323
- '*.md'
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
BRANCH="${GITHUB_REF##*/}"
9393
CI_TAG=${BRANCH#v}-ci
94-
if [ ${BRANCH} = "master" ]; then
94+
if [ ${BRANCH} = "develop" ]; then
9595
CI_TAG="ci"
9696
fi
9797
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
@@ -105,6 +105,7 @@ jobs:
105105
images: |
106106
${{ env.IMAGE_ORG }}/cstor-base
107107
quay.io/${{ env.IMAGE_ORG }}/cstor-base
108+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-base
108109
tag-latest: false
109110
tag-custom-only: true
110111
tag-custom: |
@@ -139,6 +140,13 @@ jobs:
139140
username: ${{ secrets.QUAY_USERNAME }}
140141
password: ${{ secrets.QUAY_TOKEN }}
141142

143+
- name: Login to GHCR
144+
uses: docker/login-action@v1
145+
with:
146+
registry: ghcr.io
147+
username: ${{ github.actor }}
148+
password: ${{ secrets.GITHUB_TOKEN }}
149+
142150
- name: Build & Push Image
143151
uses: docker/build-push-action@v2
144152
with:
@@ -176,7 +184,7 @@ jobs:
176184
run: |
177185
BRANCH="${GITHUB_REF##*/}"
178186
CI_TAG=${BRANCH#v}-ci
179-
if [ ${BRANCH} = "master" ]; then
187+
if [ ${BRANCH} = "develop" ]; then
180188
CI_TAG="ci"
181189
fi
182190
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
@@ -190,6 +198,7 @@ jobs:
190198
images: |
191199
${{ env.IMAGE_ORG }}/cstor-pool
192200
quay.io/${{ env.IMAGE_ORG }}/cstor-pool
201+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-pool
193202
tag-latest: false
194203
tag-custom-only: true
195204
tag-custom: |
@@ -224,6 +233,13 @@ jobs:
224233
username: ${{ secrets.QUAY_USERNAME }}
225234
password: ${{ secrets.QUAY_TOKEN }}
226235

236+
- name: Login to GHCR
237+
uses: docker/login-action@v1
238+
with:
239+
registry: ghcr.io
240+
username: ${{ github.actor }}
241+
password: ${{ secrets.GITHUB_TOKEN }}
242+
227243
- name: Build & Push Image
228244
uses: docker/build-push-action@v2
229245
with:

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ name: ci
1717
on:
1818
pull_request:
1919
branches:
20-
# on pull requests to master and release branches
21-
- 'master'
20+
# on pull requests to develop and release branches
21+
- 'develop'
2222
- 'v*'
2323
paths-ignore:
2424
- '*.md'

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
images: |
5353
${{ env.IMAGE_ORG }}/cstor-base
5454
quay.io/${{ env.IMAGE_ORG }}/cstor-base
55+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-base
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:
@@ -132,6 +140,7 @@ jobs:
132140
images: |
133141
${{ env.IMAGE_ORG }}/cstor-pool
134142
quay.io/${{ env.IMAGE_ORG }}/cstor-pool
143+
ghcr.io/${{ env.IMAGE_ORG }}/cstor-pool
135144
tag-latest: true
136145
tag-semver: |
137146
{{version}}
@@ -165,6 +174,13 @@ jobs:
165174
username: ${{ secrets.QUAY_USERNAME }}
166175
password: ${{ secrets.QUAY_TOKEN }}
167176

177+
- name: Login to GHCR
178+
uses: docker/login-action@v1
179+
with:
180+
registry: ghcr.io
181+
username: ${{ github.actor }}
182+
password: ${{ secrets.GITHUB_TOKEN }}
183+
168184
- name: Build & Push Image
169185
uses: docker/build-push-action@v2
170186
with:
@@ -194,4 +210,4 @@ jobs:
194210
m-exporter
195211
istgt
196212
# GR_TOKEN secret is the access token to perform github releases
197-
github-token: ${{ secrets.GR_TOKEN }}
213+
github-token: ${{ secrets.GR_TOKEN }}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can contribute to libcstor by filling an issue at [openebs/libcstor](https:/
88

99
* If you want to file an issue for bug or feature request, please see [Filing an issue](#filing-an-issue)
1010
* If you are a first-time contributor, please see [Steps to Contribute](#steps-to-contribute) and code standard(code-standard.md).
11-
* If you would like to work on something more involved, please connect with the OpenEBS Contributors. See [OpenEBS Community](https://github.com/openebs/openebs/tree/master/community)
11+
* If you would like to work on something more involved, please connect with the OpenEBS Contributors. See [OpenEBS Community](https://github.com/openebs/openebs/tree/HEAD/community)
1212

1313
## Filing an issue
1414
### Before filing an issue
@@ -94,7 +94,7 @@ For setting up a development environment on your local machine, see the detailed
9494
## Code Reviews
9595
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult [GitHub Help](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests) for more information on using pull requests.
9696

97-
* If your PR is not getting reviewed or you need a specific person to review it, please reach out to the OpenEBS Contributors. See [OpenEBS Community](https://github.com/openebs/openebs/tree/master/community)
97+
* If your PR is not getting reviewed or you need a specific person to review it, please reach out to the OpenEBS Contributors. See [OpenEBS Community](https://github.com/openebs/openebs/tree/HEAD/community)
9898

9999
* If PR is fixing any issues from [github-issues](github.com/openebs/libcstor/issues) then you need to mention the issue number with a link in the PR description. like: _fixes https://github.com/openebs/libcstor/issues/56_
100100

GOVERNANCE.md

Lines changed: 1 addition & 1 deletion
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/HEAD/GOVERNANCE.md).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fopenebs%2Flibcstor.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fopenebs%2Flibcstor?ref=badge_shield)
55
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/2765/badge)](https://bestpractices.coreinfrastructure.org/projects/2765)
66
[![Releases](https://img.shields.io/github/v/release/openebs/libcstor.svg?include_prereleases&style=flat-square)](https://github.com/openebs/libcstor/releases)
7-
[![LICENSE](https://img.shields.io/github/license/openebs/libcstor.svg?style=flat-square)](https://github.com/openebs/libcstor/blob/master/LICENSE)
7+
[![LICENSE](https://img.shields.io/github/license/openebs/libcstor.svg?style=flat-square)](https://github.com/openebs/libcstor/blob/develop/LICENSE)
88

99
Library to serve IOs on ZVOL over network connections
1010

RELEASE.md

Lines changed: 3 additions & 3 deletions
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
libcstor is released as a container image with a versioned tag.
2222

23-
Before creating a release, the repo owner needs to create a separate branch from the active branch, which is `master`. 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, the 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

@@ -41,12 +41,12 @@ https://quay.io/repository/openebs/cstor-pool-arm64?tab=tags
4141
https://hub.docker.com/r/openebs/cstor-pool-arm64/tags
4242
```
4343

44-
Once a release is created, update the release description with the changelog mentioned in folder `changelog/v1.9.x`. Once the changelogs are updated in the release, the repo owner needs to create a PR to `master` with the following details:
44+
Once a release is created, update the release description with the changelog mentioned in folder `changelog/v1.9.x`. Once the changelogs are updated in the release, the repo owner needs to create a PR to `develop` with the following details:
4545
1. update the changelog from folder `changelog/v1.9.x` to file `libcstor/CHANGELOG-v1.9.md`
4646
2. If a release is an RC tag then PR should include the changes to remove the changelog from folder`changelog/v1.9.x` which are already mentioned in `libcstor/CHANGELOG-v1.9.md` as part of step number 1.
4747
3. If a release is not an RC tag then
4848
- PR should include the changes to remove files from `changelog/v1.9.x` folder.
49-
- PR should update the root [CHANGELOG file](https://github.com/openebs/libcstor/blob/master/CHANGELOG.md) with contents of file `libcstor/CHANGELOG-v1.9.md`
49+
- PR should update the root [CHANGELOG file](https://github.com/openebs/libcstor/blob/develop/CHANGELOG.md) with contents of file `libcstor/CHANGELOG-v1.9.md`
5050

5151
Format of the `libcstor/CHANGELOG-v1.9.md` file must be as below:
5252
```

buildscripts/install-test-dep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cd ..
5959
# we need cstor headers
6060
git clone "https://github.com/${REPO_ORG}/cstor.git"
6161
cd cstor || exit 1
62-
if [ "${BRANCH}" == "master" ]; then
62+
if [ "${BRANCH}" == "develop" ]; then
6363
git checkout develop
6464
else
6565
git checkout "${BRANCH}" || git checkout develop

code-standard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Sign your commits
44

5-
We use the Developer Certificate of Origin (DCO) as an additional safeguard for the OpenEBS projects. 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 projects. 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/HEAD/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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ git clone https://github.com/$user/libcstor.git
5858
cd libcstor
5959
git remote add upstream https://github.com/openebs/libcstor.git
6060

61-
# Never push to upstream master
61+
# Never push to upstream develop
6262
git remote set-url --push upstream no_push
6363

6464
# Confirm that your remotes make sense:
@@ -99,7 +99,7 @@ git remote -v
9999

100100
* Test your changes
101101

102-
Integration tests are written in c and c+. Test script is maintained at https://github.com/openebs/libcstor/blob/master/tests/cstor/script/test_uzfs.sh
102+
Integration tests are written in c and c+. Test script is maintained at https://github.com/openebs/libcstor/blob/HEAD/tests/cstor/script/test_uzfs.sh
103103
To run the run the integration tests go to cstor directory and run below command.
104104
```sh
105105
../libcstor/tests/cstor/script/test_uzfs.sh -T all
@@ -114,15 +114,15 @@ Open a terminal on your local machine. Change directory to the libcstor fork roo
114114
$ cd libcstor
115115
```
116116

117-
Check out the master branch.
117+
Check out the develop branch.
118118

119119
```sh
120-
$ git checkout master
121-
Switched to branch 'master'
122-
Your branch is up-to-date with 'origin/master'.
120+
$ git checkout develop
121+
Switched to branch 'develop'
122+
Your branch is up-to-date with 'origin/develop'.
123123
```
124124

125-
Recall that origin/master is a branch on your remote GitHub repository.
125+
Recall that origin/develop is a branch on your remote GitHub repository.
126126
Make sure you have the upstream remote openebs/libcstor by listing them.
127127

128128
```sh
@@ -138,60 +138,60 @@ $ cd libcstor
138138
```sh
139139
$ git remote add upstream https://github.com/openebs/libcstor.git
140140
```
141-
Fetch all the changes from the upstream master branch.
141+
Fetch all the changes from the upstream develop branch.
142142

143143
```sh
144-
$ git fetch upstream master
144+
$ git fetch upstream develop
145145
remote: Counting objects: 141, done.
146146
remote: Compressing objects: 100% (29/29), done.
147147
remote: Total 141 (delta 52), reused 46 (delta 46), pack-reused 66
148148
Receiving objects: 100% (141/141), 112.43 KiB | 0 bytes/s, done.
149149
Resolving deltas: 100% (79/79), done.
150150
From github.com:openebs/libcstor
151-
* branch master -> FETCH_HEAD
151+
* branch develop -> FETCH_HEAD
152152
```
153153

154-
Rebase your local master with the upstream/master.
154+
Rebase your local develop with the upstream/develop.
155155

156156
```sh
157-
$ git rebase upstream/master
157+
$ git rebase upstream/develop
158158
First, rewinding head to replay your work on top of it...
159-
Fast-forwarded master to upstream/master.
159+
Fast-forwarded develop to upstream/develop.
160160
```
161-
This command applies all the commits from the upstream master to your local master.
161+
This command applies all the commits from the upstream develop to your local develop.
162162

163163
Check the status of your local branch.
164164

165165
```sh
166166
$ git status
167-
On branch master
168-
Your branch is ahead of 'origin/master' by 12 commits.
167+
On branch develop
168+
Your branch is ahead of 'origin/develop' by 12 commits.
169169
(use "git push" to publish your local commits)
170170
nothing to commit, working directory clean
171171
```
172-
Your local repository now has all the changes from the upstream remote. You need to push the changes to your remote fork which is origin master.
172+
Your local repository now has all the changes from the upstream remote. You need to push the changes to your remote fork which is origin develop.
173173

174-
Push the rebased master to origin master.
174+
Push the rebased develop to origin develop.
175175

176176
```sh
177-
$ git push origin master
177+
$ git push origin develop
178178
Username for 'https://github.com': $user
179179
Password for 'https://[email protected]':
180180
Counting objects: 223, done.
181181
Compressing objects: 100% (38/38), done.
182182
Writing objects: 100% (69/69), 8.76 KiB | 0 bytes/s, done.
183183
Total 69 (delta 53), reused 47 (delta 31)
184184
To https://github.com/$user/libcstor.git
185-
8e107a9..5035fa1 master -> master
185+
8e107a9..5035fa1 develop -> develop
186186
```
187187

188188
### Contributing to a feature or bugfix.
189189

190-
Always start with creating a new branch from master 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:
190+
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:
191191

192192
```sh
193-
$ git checkout master
194-
# Make sure the master is rebased with the latest changes as described in the previous step.
193+
$ git checkout develop
194+
# Make sure the develop is rebased with the latest changes as described in the previous step.
195195
$ git checkout -b 1234-fix-developer-docs
196196
Switched to a new branch '1234-fix-developer-docs'
197197
```
@@ -204,7 +204,7 @@ Happy Hacking!
204204
```sh
205205
# While on your myfeature branch (see above)
206206
git fetch upstream
207-
git rebase upstream/master
207+
git rebase upstream/develop
208208
```
209209

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

0 commit comments

Comments
 (0)