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