updated drone
This commit is contained in:
parent
1fb64c80dd
commit
6c31ae50ac
53
.drone.yml
53
.drone.yml
@ -1,23 +1,34 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
|
- name: build
|
||||||
build:
|
image: plugins/docker:linux-amd64
|
||||||
image: docker
|
pull: always
|
||||||
commands:
|
settings:
|
||||||
- docker build -t libreschool-automation/rpm-pack:latest .
|
daemon_off: false
|
||||||
volumes:
|
dry_run: true
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
repo: registry.libreschool.org/libreschool-automation/rpm-pack
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
exclude:
|
||||||
# build_and_publish:
|
- tag
|
||||||
# no publish at this time
|
|
||||||
# image: plugins/docker
|
- name: build_and_publish
|
||||||
# pull: true
|
image: plugins/docker:linux-amd64
|
||||||
# secrets: [ docker_username, docker_password ]
|
pull: always
|
||||||
# repo: libreschool-automation/ubuntu-build
|
settings:
|
||||||
# auto_tag: true
|
daemon_off: false
|
||||||
# auto_tag_suffix: linux-amd64
|
password:
|
||||||
# dockerfile: Dockerfile
|
from_secret: docker_password
|
||||||
# when:
|
registry: registry.libreschool.org
|
||||||
# event: [ push, tag ]
|
repo: registry.libreschool.org/libreschool-automation/rpm-pack
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
54
README.md
54
README.md
@ -17,19 +17,23 @@ docker build . -t libreschool-automation/rpm-pack:latest
|
|||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
create_targz:
|
name: default
|
||||||
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
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: create_targz
|
||||||
|
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
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).
|
Commas inside filenames should be escaped (or it'll be considered 2 distinct file names).
|
||||||
@ -43,15 +47,21 @@ Commas inside filenames should be escaped (or it'll be considered 2 distinct fil
|
|||||||
Both `dest` and `dir` supports expansion of $NAME, $VERSION and $RELEASE. Like this:
|
Both `dest` and `dir` supports expansion of $NAME, $VERSION and $RELEASE. Like this:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
create_targz:
|
name: default
|
||||||
image: libreschool-automation/rpm-pack:latest
|
|
||||||
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
|
||||||
dir: $$NAME-$$VERSION-$$RELEASE
|
|
||||||
files:
|
|
||||||
- root
|
|
||||||
- README.md
|
|
||||||
- COPYING
|
|
||||||
- LICENSE
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: create_targz
|
||||||
|
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
||||||
|
dir: $$NAME-$$VERSION-$$RELEASE
|
||||||
|
files:
|
||||||
|
- root
|
||||||
|
- createlinks.pl
|
||||||
|
- README.md
|
||||||
|
- COPYING
|
||||||
|
- LICENSE
|
||||||
|
- strange\,file.txt
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user