Skip to content

Commit

Permalink
Increase the version of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
crramirez committed Jan 19, 2022
1 parent 9cd32fa commit 70270e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version: 2.1
parameters:
package-version:
type: string
default: "1.0"

jobs:
shellcheck:
Expand Down Expand Up @@ -31,7 +35,7 @@ jobs:
name: Update changelog
command: |
rm ./debian/changelog
dch --create --distribution bullseye --package "pengwin-setup" --newversion 0.1-${CIRCLE_BUILD_NUM} "Built on Circle CI"
dch --create --distribution bullseye --package "pengwin-setup" --newversion << pipeline.parameters.package-version >>-${CIRCLE_BUILD_NUM} "Built on Circle CI"
- run:
name: Build the package
command: debuild -i -us -uc -b
Expand All @@ -40,7 +44,7 @@ jobs:
command: mkdir -p /tmp/pkgs
- run:
name: Copy package to workspace
command: cp ../pengwin-setup_0.1-${CIRCLE_BUILD_NUM}_all.deb /tmp/pkgs
command: cp ../pengwin-setup_<< pipeline.parameters.package-version >>-${CIRCLE_BUILD_NUM}_all.deb /tmp/pkgs
- persist_to_workspace:
root: /tmp/pkgs
paths: [ . ]
Expand Down Expand Up @@ -96,7 +100,7 @@ jobs:
command: gem install package_cloud
- run:
name: Push deb package bullseye
command: package_cloud push whitewaterfoundry/pengwin-setup/debian/bullseye /tmp/pkgs/pengwin-setup_0.1-*_all.deb
command: package_cloud push whitewaterfoundry/pengwin-setup/debian/bullseye /tmp/pkgs/pengwin-setup_<< pipeline.parameters.package-version >>-*_all.deb
deploydevdeb:
docker:
- image: circleci/ruby:2.3-jessie
Expand All @@ -109,7 +113,7 @@ jobs:
command: gem install package_cloud
- run:
name: Push deb package bullseye
command: package_cloud push whitewaterfoundry/pengwin-setup-dev/debian/bullseye /tmp/pkgs/pengwin-setup_0.1-*_all.deb
command: package_cloud push whitewaterfoundry/pengwin-setup-dev/debian/bullseye /tmp/pkgs/pengwin-setup_<< pipeline.parameters.package-version >>-*_all.deb
workflows:
version: 2
testdebbuild:
Expand Down
7 changes: 3 additions & 4 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Upstream-Name: pengwin-setup
Source: https://github.com/WhitewaterFoundry/pengwin-setup

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

0 comments on commit 70270e0

Please sign in to comment.