Skip to content

Commit 70270e0

Browse files
committed
Increase the version of the package
1 parent 9cd32fa commit 70270e0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.circleci/config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
version: 2.1
2+
parameters:
3+
package-version:
4+
type: string
5+
default: "1.0"
26

37
jobs:
48
shellcheck:
@@ -31,7 +35,7 @@ jobs:
3135
name: Update changelog
3236
command: |
3337
rm ./debian/changelog
34-
dch --create --distribution bullseye --package "pengwin-setup" --newversion 0.1-${CIRCLE_BUILD_NUM} "Built on Circle CI"
38+
dch --create --distribution bullseye --package "pengwin-setup" --newversion << pipeline.parameters.package-version >>-${CIRCLE_BUILD_NUM} "Built on Circle CI"
3539
- run:
3640
name: Build the package
3741
command: debuild -i -us -uc -b
@@ -40,7 +44,7 @@ jobs:
4044
command: mkdir -p /tmp/pkgs
4145
- run:
4246
name: Copy package to workspace
43-
command: cp ../pengwin-setup_0.1-${CIRCLE_BUILD_NUM}_all.deb /tmp/pkgs
47+
command: cp ../pengwin-setup_<< pipeline.parameters.package-version >>-${CIRCLE_BUILD_NUM}_all.deb /tmp/pkgs
4448
- persist_to_workspace:
4549
root: /tmp/pkgs
4650
paths: [ . ]
@@ -96,7 +100,7 @@ jobs:
96100
command: gem install package_cloud
97101
- run:
98102
name: Push deb package bullseye
99-
command: package_cloud push whitewaterfoundry/pengwin-setup/debian/bullseye /tmp/pkgs/pengwin-setup_0.1-*_all.deb
103+
command: package_cloud push whitewaterfoundry/pengwin-setup/debian/bullseye /tmp/pkgs/pengwin-setup_<< pipeline.parameters.package-version >>-*_all.deb
100104
deploydevdeb:
101105
docker:
102106
- image: circleci/ruby:2.3-jessie
@@ -109,7 +113,7 @@ jobs:
109113
command: gem install package_cloud
110114
- run:
111115
name: Push deb package bullseye
112-
command: package_cloud push whitewaterfoundry/pengwin-setup-dev/debian/bullseye /tmp/pkgs/pengwin-setup_0.1-*_all.deb
116+
command: package_cloud push whitewaterfoundry/pengwin-setup-dev/debian/bullseye /tmp/pkgs/pengwin-setup_<< pipeline.parameters.package-version >>-*_all.deb
113117
workflows:
114118
version: 2
115119
testdebbuild:

debian/copyright

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ Upstream-Name: pengwin-setup
33
Source: https://github.com/WhitewaterFoundry/pengwin-setup
44

55
Files: *
6-
Copyright: 2019 Whitewater Foundry, Ltd. Co.
7-
License: Expat
6+
Copyright: 2022 Whitewater Foundry, Ltd. Co.
7+
License: Expat
88
Permission is hereby granted, free of charge, to any person obtaining a copy
99
of this software and associated documentation files (the "Software"), to deal
1010
in the Software without restriction, including without limitation the rights
1111
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1212
copies of the Software, and to permit persons to whom the Software is
13-
furnished to do so, subject to the following conditions:
13+
furnished to do so, subject to the following conditions:
1414
.
1515
The above copyright notice and this permission notice shall be included in all
1616
copies or substantial portions of the Software.
@@ -22,4 +22,3 @@ License: Expat
2222
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
SOFTWARE.
25-

0 commit comments

Comments
 (0)