Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
e171f0420d | |||
c7591d736c | |||
e8d74a33bf | |||
ebe4b98580 | |||
ed746b6792 | |||
e9270cac3a |
12
.drone.yml
12
.drone.yml
@ -1,4 +1,5 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
@ -8,7 +9,7 @@ steps:
|
||||
settings:
|
||||
daemon_off: false
|
||||
dry_run: true
|
||||
repo: registry.libreschool.org/libreschool-automation/rpm-build
|
||||
repo: git.libreschool.org/libreschool-automation/rpm-build
|
||||
tags:
|
||||
- latest
|
||||
- 7
|
||||
@ -22,15 +23,16 @@ steps:
|
||||
pull: always
|
||||
settings:
|
||||
daemon_off: false
|
||||
force_tag: true
|
||||
registry: git.libreschool.org
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
registry: registry.libreschool.org
|
||||
repo: registry.libreschool.org/libreschool-automation/rpm-build
|
||||
repo: git.libreschool.org/libreschool-automation/rpm-build
|
||||
tags:
|
||||
- latest
|
||||
- 7
|
||||
username:
|
||||
from_secret: docker_username
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
12
Dockerfile
12
Dockerfile
@ -1,16 +1,20 @@
|
||||
FROM centos:7
|
||||
FROM centos:7.7.1908
|
||||
|
||||
RUN \
|
||||
sed -i 's/^keepcache.*/keepcache=1/' /etc/yum.conf && \
|
||||
yum upgrade -y && \
|
||||
yum localinstall -y http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-release-7-11.ns7.noarch.rpm && \
|
||||
yum install -y sudo cmake automake autoconf libtool gcc gcc-c++ nethserver-mock
|
||||
yum localinstall -y http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-release-7-19.ns7.noarch.rpm && \
|
||||
yum install -y sudo cmake automake autoconf libtool gcc gcc-c++ epel-release && \
|
||||
yum install -y nethserver-mock
|
||||
|
||||
# other packages often needed
|
||||
RUN yum install -y nethserver-devtools hunspell-en
|
||||
|
||||
ADD run.sh /usr/local/bin
|
||||
RUN chmod 755 /usr/local/bin/run.sh
|
||||
RUN chmod 755 /usr/local/bin/run.sh && \
|
||||
mkdir -p /drone/src && \
|
||||
cd /drone/src && \
|
||||
/usr/local/bin/run.sh
|
||||
|
||||
ENV PATH=/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user