https://github.com/fourdollars/dput-ppa-resource
https://github.com/fourdollars/dput-ppa-resource
concourse-ci-resource
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fourdollars/dput-ppa-resource
- Owner: fourdollars
- License: mit
- Created: 2021-01-08T17:07:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T02:54:52.000Z (9 months ago)
- Last Synced: 2025-02-12T18:43:21.732Z (3 months ago)
- Topics: concourse-ci-resource
- Language: Shell
- Homepage: https://fourdollars.github.io/
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/fourdollars/dput-ppa-resource/) [](https://opensource.org/licenses/MIT) [](https://www.gnu.org/software/bash/)  [](https://hub.docker.com/r/fourdollars/dput-ppa-resource/)
# dput-ppa-resource
[concourse-ci](https://concourse-ci.org/)'s dput-ppa-resourceIt only supports the put step.
## Config
### Resource Type
```yaml
resource_types:
- name: resource-dput-ppa
type: registry-image
source:
repository: fourdollars/dput-ppa-resource
tag: latest
```or
```yaml
resource_types:
- name: resource-dput-ppa
type: registry-image
source:
repository: ghcr.io/fourdollars/dput-ppa-resource
tag: latest
```### Resource
* fingerprint: **Required**
* passphrase: **Required**
* private_key: **Required**
* ppa: Optional. You can provide it later in the put step.```yaml
resources:
- name: dput
icon: package-up
type: resource-dput-ppa
source:
ppa: ppa:username/ppa-name
fingerprint: FingerprintOfGPGKey
passphrase: PassphraseOfGPGPrivateKey
private_key: |
-----BEGIN PGP PRIVATE KEY BLOCK-----
...
...
...
-----END PGP PRIVATE KEY BLOCK-----
```### put step
* path: **Required**. Specify a path and all *_source.changes under that path will be signed and dput into the PPA.
* ppa: Optional. You can provide it earlier in the resources.```yaml
- put: dput
params:
ppa: ppa:username/ppa-name
path: SomeFolderInTask
```
```shell
# It acts like the following commands.
$ echo "$private_key" > private.key
$ echo "$passphrase" | gpg --passphrase-fd 0 --pinentry-mode loopback --import private.key
$ rm private.key
$ find "$path" -name '*_source.changes' | while read -r package; do
> echo "$passphrase" | debsign -p'gpg --passphrase-fd 0 --pinentry-mode loopback' -S -k"$fingerprint" "$package"
> dput "$ppa" "$package"
> done
```