parent
a1e3db4835
commit
c80436f5b0
100
README.md
100
README.md
@ -1,57 +1,57 @@
|
||||
# deb-sign
|
||||
|
||||
[](https://drone.libreschool.org/paspo/rpm-pack)
|
||||
[](https://drone.libreschool.org/libreschool-automation/rpm-pack)
|
||||
|
||||
This docker image is used to build source .tar.gz for later package building.
|
||||
You must have a .spec file from which the name, version and release are gathered.
|
||||
All specified files are put in a new .tar.gz file, named "${name}-${version}.tar.gz".
|
||||
Inside this archive, all specified files are put inside a directory called "${name}-${version}"
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
docker build . -t libreschool-automation/rpm-pack:latest
|
||||
```
|
||||
|
||||
## How to use
|
||||
|
||||
```yml
|
||||
pipeline:
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: myfile.tar.gz
|
||||
dir: myproject-1.0
|
||||
files:
|
||||
- root
|
||||
- createlinks.pl
|
||||
- README.md
|
||||
- COPYING
|
||||
- LICENSE
|
||||
- strange\,file.txt
|
||||
|
||||
```
|
||||
|
||||
Commas inside filenames should be escaped (or it'll be considered 2 distinct file names).
|
||||
|
||||
## Parameters
|
||||
|
||||
- `files` - files to be added to .tar.gz; defaults to `*`
|
||||
- `dest` - destination archive; defaults to `${name}-${version}.tar.gz`
|
||||
- `dir` - directory inside destination archive; defaults to `${name}-${version}`
|
||||
|
||||
Both `dest` and `dir` supports expansion of $NAME, $VERSION and $RELEASE. Like this:
|
||||
|
||||
```yml
|
||||
pipeline:
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
||||
dir: $$NAME-$$VERSION-$$RELEASE
|
||||
files:
|
||||
- root
|
||||
- README.md
|
||||
- COPYING
|
||||
- LICENSE
|
||||
|
||||
```
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
docker build . -t libreschool-automation/rpm-pack:latest
|
||||
```
|
||||
|
||||
## How to use
|
||||
|
||||
```yml
|
||||
pipeline:
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: myfile.tar.gz
|
||||
dir: myproject-1.0
|
||||
files:
|
||||
- root
|
||||
- createlinks.pl
|
||||
- README.md
|
||||
- COPYING
|
||||
- LICENSE
|
||||
- strange\,file.txt
|
||||
|
||||
```
|
||||
|
||||
Commas inside filenames should be escaped (or it'll be considered 2 distinct file names).
|
||||
|
||||
## Parameters
|
||||
|
||||
- `files` - files to be added to .tar.gz; defaults to `*`
|
||||
- `dest` - destination archive; defaults to `${name}-${version}.tar.gz`
|
||||
- `dir` - directory inside destination archive; defaults to `${name}-${version}`
|
||||
|
||||
Both `dest` and `dir` supports expansion of $NAME, $VERSION and $RELEASE. Like this:
|
||||
|
||||
```yml
|
||||
pipeline:
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
||||
dir: $$NAME-$$VERSION-$$RELEASE
|
||||
files:
|
||||
- root
|
||||
- README.md
|
||||
- COPYING
|
||||
- LICENSE
|
||||
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user