Compare commits

..

No commits in common. "master" and "v0.1" have entirely different histories.
master ... v0.1

3 changed files with 38 additions and 63 deletions

View File

@ -1,37 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: plugins/docker:linux-amd64
pull: always
settings:
daemon_off: false
dry_run: true
repo: git.libreschool.org/libreschool-automation/deb-sign
tags:
- latest
when:
event:
exclude:
- tag
pipeline:
- name: build_and_publish
image: plugins/docker:linux-amd64
pull: always
settings:
daemon_off: false
force_tag: true
registry: git.libreschool.org
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.libreschool.org/libreschool-automation/deb-sign
tags:
- latest
- ${DRONE_TAG}
build:
image: docker
commands:
- docker build -t libreschool-automation/deb-sign:latest .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event:
- tag
event: tag
# build_and_publish:
# no publish at this time
# image: plugins/docker
# pull: true
# secrets: [ docker_username, docker_password ]
# repo: libreschool-automation/ubuntu-build
# auto_tag: true
# auto_tag_suffix: linux-amd64
# dockerfile: Dockerfile
# when:
# event: [ push, tag ]

View File

@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM ubuntu:latest
RUN apt-get update && apt-get install -y \
dpkg-sig

View File

@ -2,7 +2,7 @@
[![Build Status](https://drone.libreschool.org/api/badges/libreschool-automation/deb-sign/status.svg)](https://drone.libreschool.org/libreschool-automation/deb-sign)
Ubuntu 18.04 docker image with some packages preinstalled.
Ubuntu docker image with some packages preinstalled.
This is used to sign .deb packages.
@ -15,18 +15,14 @@ docker build . -t libreschool-automation/deb-sign:latest
## How NOT to use
```yml
kind: pipeline
name: default
steps:
- name: pkg_sign
image: git.libreschool.org/libreschool-automation/rpm-sign:latest
pull: always
settings:
pipeline:
pkg_sign:
image: libreschool-automation/deb-sign:latest
files: my_package.deb
sign_type: origin
gpg_key: []
passphrase: supersecretpassword
```
## How to use
@ -35,20 +31,13 @@ Seriously, don't put the GPG key or the passphrase in .drone.yml.
```yml
kind: pipeline
name: default
steps:
- name: pkg_sign
image: git.libreschool.org/libreschool-automation/deb-sign:latest
pull: always
settings:
pipeline:
pkg_sign:
image: libreschool-automation/deb-sign:latest
files: my_package.deb
sign_type: origin
gpg_key:
from_secret: gpg_key
passphrase:
from_secret: gpg_passphrase
secrets: [gpg_key, passphrase]
```
## Parameters