This commit is contained in:
commit
fe3d11f72a
2 changed files with 51 additions and 0 deletions
26
.drone.yml
Normal file
26
.drone.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
kind: secret
|
||||
name: docker_username
|
||||
get:
|
||||
path: docker
|
||||
name: username
|
||||
---
|
||||
kind: secret
|
||||
name: docker_password
|
||||
get:
|
||||
path: docker
|
||||
name: password
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: publish
|
||||
steps:
|
||||
- name: publish
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: jcollie/osslsigncode
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
auto_tag: true
|
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Originally from:
|
||||
# https://raw.githubusercontent.com/giantswarm/signcode-util/master/Dockerfile
|
||||
|
||||
FROM alpine:3.6 AS base
|
||||
|
||||
RUN apk add --no-cache curl openssl libgsf
|
||||
|
||||
FROM base AS build
|
||||
|
||||
ARG VERSION=1.7.1
|
||||
ARG SHA256_HASH=f9a8cdb38b9c309326764ebc937cba1523a3a751a7ab05df3ecc99d18ae466c9
|
||||
|
||||
RUN apk add --update autoconf build-base curl-dev libgsf-dev openssl-dev
|
||||
RUN curl -s -L https://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-$VERSION.tar.gz > osslsigncode-$VERSION.tar.gz
|
||||
RUN echo "$SHA256_HASH osslsigncode-$VERSION.tar.gz" > SHA256SUM
|
||||
RUN sha256sum -c SHA256SUM
|
||||
RUN tar xzf osslsigncode-$VERSION.tar.gz
|
||||
WORKDIR /osslsigncode-$VERSION
|
||||
RUN ./configure
|
||||
RUN make
|
||||
RUN make install
|
||||
|
||||
FROM base
|
||||
|
||||
COPY --from=build /usr/local/bin/osslsigncode /usr/local/bin
|
Loading…
Reference in a new issue