From a410b1468be103f6b611c9ee8cec5d343cfe3753 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 9 Feb 2019 15:29:00 +0100 Subject: [PATCH] initial commit --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ Dockerfile | 16 ++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fcb2f43 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,34 @@ +--- +kind: pipeline +name: default + +steps: + - name: dryrun + pull: always + image: plugins/docker:linux-amd64 + settings: + dry_run: true + password: + from_secret: docker_password + repo: xoxys/rpmbuild-centos7 + tags: linux-amd64 + username: + from_secret: docker_username + when: + event: + - pull_request + + - name: publish + pull: always + image: plugins/docker:linux-amd64 + settings: + auto_tag: true + password: + from_secret: docker_password + repo: xoxys/rpmbuild-centos7 + username: + from_secret: docker_username + when: + event: + - push + - tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8b29977 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM centos:7 + +RUN yum install -y gcc gcc-c++ \ + libtool libtool-ltdl \ + make cmake \ + git \ + pkgconfig \ + wget \ + automake autoconf \ + yum-utils rpm-build && \ + yum clean all + +USER root + +ENV FLAVOR=rpmbuild OS=centos DIST=el7 +CMD /srv/pkg