Skip to content

Commit

Permalink
Move binaries out of git and change debian repository (#173)
Browse files Browse the repository at this point in the history
* Get binaries out of get, and change debian repository

* Fix prettier findings

* Fix license author, and debian package author

* Readme on how to publish

* Fix prettier findings

* Fix URL

---------

Co-authored-by: Mads Jon Nielsen <[email protected]>
  • Loading branch information
firecow and Mads Jon Nielsen authored Sep 28, 2023
1 parent 07af04c commit 0811883
Show file tree
Hide file tree
Showing 22 changed files with 42 additions and 270 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ bin/**/*.js
tests/**/*.js
test
cego-gitte-*.tgz
ppa/
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Mads Jon Nielsen
Copyright (c) 2022 Cego A/S

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,30 @@ Requires npm and node version 16 or higher.
npm install -g @cego/gitte
```

## Linux binaries
### Linux based on Debian

Users of Debian-based distributions should prefer the [the Deb822 format][deb822], installed with:

```bash
sudo wget -O /etc/apt/sources.list.d/gitte.sources https://gitte-ppa.cego.dk/gitte.sources
sudo apt-get update
sudo apt-get install gitte
```

[deb822]: https://repolib.readthedocs.io/en/latest/deb822-format.html#deb822-format

If your distribution does not support this, you can run these commands:

```bash
curl -s "https://cego.github.io/gitte/ppa/pubkey.gpg" | sudo apt-key add -
sudo curl -s -o /etc/apt/sources.list.d/gitte.list "https://cego.github.io/gitte/ppa/gitte.list"
curl -s "https://gitte-ppa.cego.dk/pubkey.gpg" | sudo apt-key add -
echo "deb https://gitte-ppa.cego.dk ./" | sudo tee /etc/apt/sources.list.d/gitte.list
sudo apt-get update
sudo apt-get install gitte
```

Note that the path `/etc/apt/sources.list.d/gitte.list` is used in the file `gitte.list`.
If you change it in these commands you must also change it in `/etc/apt/sources.list.d/gitte.list`.

# Basic usage

In a terminal in a folder with a gitte configuration, or a subfolder thereof, run:
Expand Down Expand Up @@ -123,3 +138,15 @@ Ignore dependencies.
Default: CPU/2

Set this to limit the number of parallel processes when running tasks.

## How to publish debian packages to [gitte-ppa.cego.dk](gitte-ppa.cego.dk)

Run `./publish-os-packages` and upload the ppa/ppa.zip file to cego's cloudflare pages

A gpg signing key is needed to sign the debian packages.

## How to publish npmjs.com

Run `npm publish` to upload to npmjs.com

You need proper permissions in the `@cego` organization on [npmjs.com](npmjs.com)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cego/gitte",
"version": "1.3.0",
"version": "1.3.1",
"description": "Git automation and action execution across a list of projects",
"main": "bin/main.js",
"bin": {
Expand Down
37 changes: 0 additions & 37 deletions ppa/InRelease

This file was deleted.

135 changes: 0 additions & 135 deletions ppa/Packages

This file was deleted.

Binary file removed ppa/Packages.gz
Binary file not shown.
17 changes: 0 additions & 17 deletions ppa/Release

This file was deleted.

17 changes: 0 additions & 17 deletions ppa/Release.gpg

This file was deleted.

1 change: 0 additions & 1 deletion ppa/gitte.list

This file was deleted.

Binary file removed ppa/gitte_0.0.1_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_0.0.3_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_0.0.4_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_0.0.5_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_1.0.0_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_1.0.1_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_1.2.0_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_1.2.1_amd64.deb
Binary file not shown.
Binary file removed ppa/gitte_1.3.0_amd64.deb
Binary file not shown.
52 changes: 0 additions & 52 deletions ppa/pubkey.gpg

This file was deleted.

11 changes: 7 additions & 4 deletions publish-os-packages
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Name: gitte
Package: gitte
Version: ${VERSION}
Architecture: amd64
Author: Mads Jon Nielsen <[email protected]>
Maintainer: Mads Jon Nielsen <[email protected]>
Author: Cego A/S <[email protected]>
Maintainer: Cego A/S <[email protected]>
Description: ${DESCRIPTION}
Homepage: https://github.com/cego/gitte
Website: https://github.com/cego/gitte
Expand All @@ -40,5 +40,8 @@ mv "pkg/gitte_${VERSION}_amd64.deb" "ppa/"

# Release, Release.gpg & InRelease
(cd ppa && apt-ftparchive release . > Release)
(cd ppa && gpg --default-key "[email protected]" -abs -o - Release > Release.gpg)
(cd ppa && gpg --default-key "[email protected]" --clearsign -o - Release > InRelease)
(cd ppa && gpg --default-key "[email protected]" -abs -o - Release > Release.gpg)
(cd ppa && gpg --default-key "[email protected]" --clearsign -o - Release > InRelease)

rm -f ppa/ppa.zip
(cd ppa && zip -r ppa.zip .)

0 comments on commit 0811883

Please sign in to comment.