add Drone CI pipeline and Dockerfile for nginx setup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-08-29 10:09:23 +02:00
parent 625691020e
commit 045ed8de5a
2 changed files with 56 additions and 0 deletions

47
.drone.yml Normal file
View File

@@ -0,0 +1,47 @@
kind: pipeline
type: kubernetes
name: default
node_selector:
physical-node: dev1
trigger:
branch:
- main
event:
- push
workspace:
path: /drone/src
steps:
- name: build multiarch from dev
image: docker.io/owncloudci/drone-docker-buildx:4
privileged: true
settings:
cache-from: [ "registry.dev.format.hu/nextcloud-nginx" ]
registry: registry.dev.format.hu
repo: registry.dev.format.hu/nextcloud-nginx
tags: latest
dockerfile: Dockerfile
username:
from_secret: dev-hu-registry-username
password:
from_secret: dev-hu-registry-password
platforms:
- linux/amd64
- linux/arm64
- name: pull image to dockerhub
image: docker.io/owncloudci/drone-docker-buildx:4
privileged: true
settings:
cache-from: [ "safebox/nextcloud-nginx" ]
repo: safebox/nextcloud-nginx
tags: latest
username:
from_secret: dockerhub-username
password:
from_secret: dockerhub-password
platforms:
- linux/amd64
- linux/arm64

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM nginx:1.29.1-alpine-slim
COPY nginx.conf /etc/nginx/nginx.conf
VOLUME ["/var/cache/nginx"]
EXPOSE 80
CMD nginx