update to multiarch
This commit is contained in:
71
.drone.yml
71
.drone.yml
@@ -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
|
||||
|
Reference in New Issue
Block a user