fix: gpg key import

This commit is contained in:
Markus Pesch 2020-08-02 14:06:07 +02:00
parent 59f5dec9ca
commit 51c30d02d7
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
5 changed files with 47 additions and 8 deletions

View File

@ -3,6 +3,10 @@ type: docker
name: build-image-x86_64
steps:
# BUILD
###############################################################################
- name: build-image-latest
image: docker.io/volkerraschek/build-image:latest
commands:
@ -14,6 +18,9 @@ steps:
branch:
- master
# PUSH
###############################################################################
- name: push-image-latest
image: docker.io/volkerraschek/build-image:latest
commands:
@ -47,6 +54,28 @@ steps:
event:
- tag
# NOTIFY
###############################################################################
- name: notify
image: drillster/drone-email
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
# VOLUMES
###############################################################################
volumes:
- name: docker_socket
host:

View File

@ -2,17 +2,24 @@ ARG BASE_IMAGE
FROM ${BASE_IMAGE}
COPY installation-scripts /tmp/installation-scripts
RUN /tmp/installation-scripts/00-pacman-mirror.sh
RUN pacman --sync \
--refresh \
--noconfirm \
--sysupgrade docker go gcc make git rpm-builder which zip
--sysupgrade awk bash-completion docker go gcc make git which zip
COPY installation-scripts /tmp/installation-scripts
# Install PKGs from own repo
RUN /tmp/installation-scripts/00-pacman-mirror.sh
RUN pacman --sync \
--refresh \
--noconfirm \
--sysupgrade rpm-builder
ENV PATH="/root/.cargo/bin:/root/go/bin:${PATH}"
RUN for f in {01-rustup.sh,02-github-release.sh,03-go-bindata.sh}; do /tmp/installation-scripts/$f; done && \
RUN for f in {01-rustup.sh,02-go-bindata.sh}; do /tmp/installation-scripts/$f; done && \
rm --recursive --force /tmp/installation-scripts
WORKDIR /workspace

View File

@ -1,7 +1,13 @@
#!/bin/bash
cat > /etc/pacman.d/gnupg/dirmngr.conf <<EOF
keyserver hkps://hkps.pool.sks-keyservers.net:443
keyserver hkp://pool.sks-keyservers.net:80
EOF
# Initialize pacman-key ring
pacman-key --init
pacman-key --refresh-keys
# Add GPG Key
pacman-key --recv-keys 9B146D11A9ED6CA7E279EB1A852BCC170D81A982

View File

@ -1,3 +0,0 @@
#!/bin/bash
go get github.com/aktau/github-release