1
0
Fork 0

Compare commits

...

24 Commits

Author SHA1 Message Date
Massaki Archambault 8da18a99b1 bump nextcloud 25.0.3
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details
2023-02-02 15:26:54 -05:00
Massaki Archambault 343d54a0d1 bump nextcloud 24.0.9
continuous-integration/drone/push Build was killed Details
continuous-integration/drone Build is passing Details
continuous-integration/drone/tag Build was killed Details
2023-02-02 14:13:16 -05:00
Massaki Archambault 65f9d88d77 Revert "enable plugin/docker debug"
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
This reverts commit e6c537fc78.
2022-10-19 23:06:50 -04:00
Massaki Archambault e6c537fc78 enable plugin/docker debug
continuous-integration/drone/push Build is passing Details
2022-10-19 22:11:01 -04:00
Massaki Archambault 1ded686191 bump nextcloud 24.0.6
continuous-integration/drone Build is failing Details
continuous-integration/drone/push Build is failing Details
2022-10-19 20:57:10 -04:00
Massaki Archambault e8a6290073 bump nextcloud 24.0.3
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details
2022-07-22 00:32:04 -04:00
Massaki Archambault 469c123d24 bump nextcloud 23.0.7
continuous-integration/drone/push Build is passing Details
2022-07-21 01:34:27 -04:00
Massaki Archambault 1880a2f504 bump nextcloud 22.2.10
continuous-integration/drone Build is passing Details
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/tag Build is passing Details
2022-07-21 00:03:44 -04:00
Massaki Archambault 83de939022 fix cleanup
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-12-26 01:21:29 -05:00
Massaki Archambault d25e59f713 cleanup 2021-12-26 00:06:32 -05:00
Massaki Archambault 501696ea00 add cleanup step 2021-12-25 23:54:13 -05:00
Massaki Archambault e02f469b7b test deploy to internal registry
continuous-integration/drone/push Build is passing Details
2021-12-25 23:33:58 -05:00
Massaki Archambault 86b60e5f80 set mtu to 1450
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2021-12-16 15:08:47 -05:00
Massaki Archambault eac77422ef cleanup
continuous-integration/drone/push Build is failing Details
2021-12-16 14:44:49 -05:00
Massaki Archambault 4466e553b0 fix pipeline type
continuous-integration/drone/push Build is passing Details
2021-12-16 13:59:15 -05:00
Massaki Archambault 4da629e35c use node_selector
continuous-integration/drone/push Build was killed Details
continuous-integration/drone Build was killed Details
2021-12-16 13:03:49 -05:00
Massaki Archambault a7efc524ce use toleration form amd64 builds
continuous-integration/drone/push Build was killed Details
2021-12-16 12:58:03 -05:00
Massaki Archambault d29a021526 bump nextcloud version
continuous-integration/drone Build was killed Details
2021-12-16 10:17:34 -05:00
Massaki Archambault 0c6968b3f8 add amd64 pipeline
continuous-integration/drone/push Build was killed Details
2021-09-05 12:39:46 -04:00
Massaki Archambault 2bfd30a19b set NEXTCLOUD_UPDATE
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2021-08-28 20:11:35 -04:00
Massaki Archambault c0bf5e06cc remove httpd config
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details
2021-08-28 20:09:06 -04:00
Massaki Archambault 8c050fe8af add supervisord
continuous-integration/drone/push Build is passing Details
2021-08-28 19:50:44 -04:00
Massaki Archambault 91cc9ffff8 make pipeline explicitly for arm64
continuous-integration/drone/push Build is passing Details
2021-08-28 19:17:01 -04:00
Massaki Archambault dfed035aa2 Revert "bump nextcloud to 22.1.1"
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details
This reverts commit 91e080eb6c.
2021-08-28 18:54:59 -04:00
5 changed files with 104 additions and 48 deletions

View File

@ -1,14 +1,72 @@
kind: pipeline
type: kubernetes
name: default
name: build-arm64
node_selector:
kubernetes.io/arch: arm64
steps:
- name: docker
- name: docker build
image: plugins/docker
settings:
repo: badjware/nextcloud-tweak
auto_tag: true
repo: ${DRONE_REPO}
tag: ${DRONE_COMMIT_SHA:0:8}-arm64
# docker use a mtu of 1500 by default, which may cause packet drop in k8s
mtu: 1450
username:
from_secret: docker_username
password:
from_secret: docker_password
from_secret: docker_password
---
kind: pipeline
type: kubernetes
name: build-amd64
node_selector:
kubernetes.io/arch: amd64
steps:
- name: docker build
image: plugins/docker
settings:
repo: ${DRONE_REPO}
tag: ${DRONE_COMMIT_SHA:0:8}-amd64
# docker use a mtu of 1500 by default, which may cause packet drop in k8s
mtu: 1450
username:
from_secret: docker_username
password:
from_secret: docker_password
---
kind: pipeline
type: kubernetes
name: create-multiarch-manifest
steps:
- name: docker manifest
image: docker:20-dind-rootless
commands:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker manifest create ${DRONE_REPO}:${DRONE_TAG:-latest} --amend ${DRONE_REPO}:${DRONE_COMMIT_SHA:0:8}-amd64 --amend ${DRONE_REPO}:${DRONE_COMMIT_SHA:0:8}-arm64
- docker manifest push ${DRONE_REPO}:${DRONE_TAG:-latest}
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
- name: cleanup
image: alpine
commands:
- apk add curl jq
- 'DOCKER_TOKEN="$(curl -sf -XPOST -H "Content-Type: application/json" -d "{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$DOCKER_PASSWORD\"}" https://hub.docker.com/v2/users/login | jq --raw-output .token)"'
- 'curl -sf -XDELETE -H "Accept: application/json" -H "Authorization: Bearer $DOCKER_TOKEN" https://hub.docker.com/v2/repositories/${DRONE_REPO}/tags/${DRONE_COMMIT_SHA:0:8}-arm64/'
- 'curl -sf -XDELETE -H "Accept: application/json" -H "Authorization: Bearer $DOCKER_TOKEN" https://hub.docker.com/v2/repositories/${DRONE_REPO}/tags/${DRONE_COMMIT_SHA:0:8}-amd64/'
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
depends_on:
- build-arm64
- build-amd64

View File

@ -1,8 +1,17 @@
FROM nextcloud:22.1.1
FROM nextcloud:25.0.3-apache
COPY httpd/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY supervisord/supervisord.conf /opt/supervisord.conf
# install cron
RUN apt-get update && \
apt-get install -y cron libmagickcore-6.q16-6-extra && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ffmpeg \
libmagickcore-6.q16-6-extra \
procps \
smbclient \
supervisor \
&& mkdir /var/log/supervisord /var/run/supervisord \
&& rm -rf /var/lib/apt/lists/*
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/opt/supervisord.conf"]

3
Makefile Normal file
View File

@ -0,0 +1,3 @@
.PHONY: amd64
amd64:
drone exec --pipeline amd64

View File

@ -1,37 +0,0 @@
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^\.well-known/carddav /nextcloud/remote.php/dav [R=301,L]
RewriteRule ^\.well-known/caldav /nextcloud/remote.php/dav [R=301,L]
</IfModule>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

View File

@ -0,0 +1,23 @@
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisord/supervisord.log
pidfile=/var/run/supervisord/supervisord.pid
childlogdir=/var/log/supervisord/
logfile_maxbytes=50MB
logfile_backups=3
loglevel=error
[program:apache2]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=apache2-foreground
[program:cron]
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
command=/cron.sh