update to multiarch

This commit is contained in:
2025-03-05 15:10:40 +01:00
parent 5643d5fde7
commit ab403e6f69
2 changed files with 36 additions and 92 deletions

View File

@@ -1,5 +1,10 @@
kind: pipeline
type: kubernetes
name: default
node_selector:
physical-node: dev2
trigger:
branch:
- master
@@ -8,39 +13,35 @@ trigger:
workspace:
path: /drone/src
environment:
REPO_NAME: galaxis-internal-proxy
IMAGE_NAME: galaxis-internal-proxy
REGISTRY_URL: registry.galaxis.xyz
steps:
- name: build image from master branch
image: plugins/docker
commands:
- cd /drone/src
- docker build -t $${REGISTRY_URL}/$${IMAGE_NAME} -f Dockerfile .
- docker tag $${REGISTRY_URL}/$${IMAGE_NAME} localhost:5000/$${IMAGE_NAME}
#- docker push $${REGISTRY_URL}/$${IMAGE_NAME}
- docker push localhost:5000/$${IMAGE_NAME}
- docker rmi $${REGISTRY_URL}/$${IMAGE_NAME}
when:
branch:
- master
volumes:
- name: docker
path: /var/run/docker.sock
volumes:
- name: cache
temp: {}
- name: docker
host:
path: /var/run/docker.sock
- name: docker_bin
host:
path: /usr/bin/docker
- name: build multiarch from dev
image: docker.io/owncloudci/drone-docker-buildx:4
privileged: true
settings:
cache-from: [ "registry.dev.format.hu/nginx" ]
registry: registry.dev.format.hu
repo: registry.dev.format.hu/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/nginx" ]
repo: safebox/nginx
tags: latest
username:
from_secret: dockerhub-username
password:
from_secret: dockerhub-password
platforms:
- linux/amd64
- linux/arm64

View File

@@ -1,57 +0,0 @@
global
log stdout format raw local0 debug
defaults
mode http
option redispatch
option http-server-close
log global
timeout connect 5s
timeout client 24h
timeout server 24h
option srvtcpka
option clitcpka
frontend default
bind :80 accept-proxy
mode http
option httpclose
option httplog
http-request add-header X-Forwarded-For %[src]
acl letsencrypt path_beg /.well-known/acme-challenge/
use_backend letsencrypt if letsencrypt
default_backend backend-default
backend letsencrypt
server letsencrypt letsencrypt:80 send-proxy
backend backend-default
mode http
option httplog
#option log-health-checks
option redispatch
log global
balance roundrobin
server backend-1 smarthostbackend-1:80 check send-proxy
server backend-2 smarthostbackend-2:80 check send-proxy
frontend default_https
bind :443 accept-proxy
mode tcp
option forwardfor
option tcplog
option dontlognull
default_backend backend_default_https
backend backend_default_https
mode tcp
option tcplog
# option log-health-checks
# option redispatch
log global
balance roundrobin
server backend-1 smarthostbackend-1:443 check send-proxy
server backend-2 smarthostbackend-2:443 check send-proxy