drone upgrade
This commit is contained in:
parent
59d487f0e9
commit
c1dde8ec30
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-build:latest .
|
daemon_off: false
|
||||||
volumes:
|
dry_run: true
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
repo: registry.libreschool.org/libreschool-automation/rpm-build
|
||||||
|
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-build
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
14
README.md
14
README.md
@ -14,16 +14,16 @@ docker build . -t libreschool-automation/rpm-build:latest
|
|||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
workspace:
|
kind: pipeline
|
||||||
base: /build
|
name: default
|
||||||
path: /
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
build:
|
- name: build
|
||||||
image: libreschool-automation/rpm-build:latest
|
image: registry.libreschool.org/libreschool-automation/rpm-build:latest
|
||||||
|
pull: always
|
||||||
|
working_dir: /build
|
||||||
commands:
|
commands:
|
||||||
- yum-builddep -y mypackage.spec
|
- yum-builddep -y mypackage.spec
|
||||||
- rpmbuild -ba mypackage.spec
|
- rpmbuild -ba mypackage.spec
|
||||||
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user