drone upgrade
This commit is contained in:
parent
ace3997da2
commit
9e2a178321
51
.drone.yml
51
.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-sign:latest .
|
daemon_off: false
|
||||||
volumes:
|
dry_run: true
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
repo: registry.libreschool.org/libreschool-automation/rpm-sign
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
when:
|
when:
|
||||||
event: tag
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
# build_and_publish:
|
- name: build_and_publish
|
||||||
# no publish at this time
|
image: plugins/docker:linux-amd64
|
||||||
# image: plugins/docker
|
pull: always
|
||||||
# pull: true
|
settings:
|
||||||
# secrets: [ docker_username, docker_password ]
|
daemon_off: false
|
||||||
# repo: libreschool-automation/rpm-sign
|
password:
|
||||||
# auto_tag: true
|
from_secret: docker_password
|
||||||
# auto_tag_suffix: linux-amd64
|
registry: registry.libreschool.org
|
||||||
# dockerfile: Dockerfile
|
repo: registry.libreschool.org/libreschool-automation/rpm-sign
|
||||||
# when:
|
tags:
|
||||||
# event: [ push, tag ]
|
- latest
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
32
README.md
32
README.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://drone.libreschool.org/libreschool-automation/rpm-sign)
|
[](https://drone.libreschool.org/libreschool-automation/rpm-sign)
|
||||||
|
|
||||||
CentOS docker image with some packages preinstalled.
|
Fedora docker image with some packages preinstalled.
|
||||||
This is used to sign .rpm packages.
|
This is used to sign .rpm packages.
|
||||||
|
|
||||||
|
|
||||||
@ -15,13 +15,16 @@ docker build . -t libreschool-automation/rpm-sign:latest
|
|||||||
## How NOT to use
|
## How NOT to use
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
pkg_sign:
|
name: default
|
||||||
image: libreschool-automation/rpm-sign:latest
|
|
||||||
files: my_package.rpm
|
steps:
|
||||||
|
- name: pkg_sign
|
||||||
|
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
gpg_key: []
|
gpg_key: []
|
||||||
passphrase: supersecretpassword
|
passphrase: supersecretpassword
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
@ -30,12 +33,19 @@ Seriously, don't put the GPG key or the passphrase in .drone.yml.
|
|||||||
|
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
pkg_sign:
|
name: default
|
||||||
image: libreschool-automation/rpm-sign:latest
|
|
||||||
files: my_package.rpm
|
|
||||||
secrets: [gpg_key, passphrase]
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: pkg_sign
|
||||||
|
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
files: my_package.rpm
|
||||||
|
gpg_key:
|
||||||
|
from_secret: gpg_key
|
||||||
|
passphrase:
|
||||||
|
from_secret: gpg_passphrase
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user