drone upgrade
This commit is contained in:
parent
4d3ed1d517
commit
afea52af09
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/deb-sign:latest .
|
daemon_off: false
|
||||||
volumes:
|
dry_run: true
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
repo: registry.libreschool.org/libreschool-automation/deb-sign
|
||||||
|
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/deb-sign
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
dpkg-sig
|
dpkg-sig
|
||||||
|
43
README.md
43
README.md
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://drone.libreschool.org/libreschool-automation/deb-sign)
|
[](https://drone.libreschool.org/libreschool-automation/deb-sign)
|
||||||
|
|
||||||
Ubuntu docker image with some packages preinstalled.
|
Ubuntu 18.04 docker image with some packages preinstalled.
|
||||||
This is used to sign .deb packages.
|
This is used to sign .deb packages.
|
||||||
|
|
||||||
|
|
||||||
@ -15,14 +15,18 @@ docker build . -t libreschool-automation/deb-sign:latest
|
|||||||
## How NOT to use
|
## How NOT to use
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
pipeline:
|
kind: pipeline
|
||||||
pkg_sign:
|
name: default
|
||||||
image: libreschool-automation/deb-sign:latest
|
|
||||||
files: my_package.deb
|
steps:
|
||||||
sign_type: origin
|
- name: pkg_sign
|
||||||
gpg_key: []
|
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
|
||||||
passphrase: supersecretpassword
|
pull: always
|
||||||
|
settings:
|
||||||
|
files: my_package.deb
|
||||||
|
sign_type: origin
|
||||||
|
gpg_key: []
|
||||||
|
passphrase: supersecretpassword
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
@ -31,13 +35,20 @@ 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/deb-sign:latest
|
|
||||||
files: my_package.deb
|
steps:
|
||||||
sign_type: origin
|
- name: pkg_sign
|
||||||
secrets: [gpg_key, passphrase]
|
image: registry.libreschool.org/libreschool-automation/deb-sign:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
files: my_package.deb
|
||||||
|
sign_type: origin
|
||||||
|
gpg_key:
|
||||||
|
from_secret: gpg_key
|
||||||
|
passphrase:
|
||||||
|
from_secret: gpg_passphrase
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user