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