diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3e755d5 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..984c6c6 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file