This commit is contained in:
parent
df1214c2f7
commit
a410b1468b
34
.drone.yml
Normal file
34
.drone.yml
Normal file
@ -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
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -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
|
Reference in New Issue
Block a user