1
0
Fork 0

Compare commits

..

17 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
2 changed files with 53 additions and 21 deletions

View File

@ -1,14 +1,18 @@
kind: pipeline
type: docker
name: amd64
type: kubernetes
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:
@ -16,18 +20,53 @@ steps:
---
kind: pipeline
type: kubernetes
name: arm64
name: build-amd64
node_selector:
beta.kubernetes.io/arch: arm64
kubernetes.io/arch: amd64
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}-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,7 @@
FROM nextcloud:22.2.3-apache
FROM nextcloud:25.0.3-apache
COPY supervisord/supervisord.conf /opt/supervisord.conf
# install cron
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ffmpeg \
@ -10,12 +9,6 @@ RUN apt-get update \
procps \
smbclient \
supervisor \
libbz2-dev \
libc-client-dev \
libkrb5-dev \
libsmbclient-dev \
&& pecl install smbclient \
&& docker-php-ext-enable smbclient \
&& mkdir /var/log/supervisord /var/run/supervisord \
&& rm -rf /var/lib/apt/lists/*