CD: Deploy on Docker Hub into happydomain organisation
continuous-integration/drone/push Build is running Details

This commit is contained in:
nemunaire 2022-03-22 01:44:29 +01:00
parent 8463cd4928
commit 383e763657
2 changed files with 7 additions and 58 deletions

View File

@ -1,4 +1,4 @@
image: happydns/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} image: happydomain/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}} {{#if build.tags}}
tags: tags:
{{#each build.tags}} {{#each build.tags}}
@ -6,16 +6,16 @@ tags:
{{/each}} {{/each}}
{{/if}} {{/if}}
manifests: manifests:
- image: happydns/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 - image: happydomain/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform: platform:
architecture: amd64 architecture: amd64
os: linux os: linux
- image: happydns/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 - image: happydomain/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform: platform:
architecture: arm64 architecture: arm64
os: linux os: linux
variant: v8 variant: v8
- image: happydns/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm - image: happydomain/happydomain:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform: platform:
architecture: arm architecture: arm
os: linux os: linux

View File

@ -187,22 +187,10 @@ steps:
event: event:
- tag - tag
- name: publish on local registry
image: plugins/docker
settings:
registry: registry.happydomain.org
repo: registry.happydomain.org/happydomain
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish on Docker Hub - name: publish on Docker Hub
image: plugins/docker image: plugins/docker
settings: settings:
repo: happydns/happydomain repo: happydomain/happydomain
auto_tag: true auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
dockerfile: Dockerfile-builded dockerfile: Dockerfile-builded
@ -361,24 +349,10 @@ steps:
event: event:
- tag - tag
- name: publish on local registry
image: plugins/docker
settings:
registry: registry.happydomain.org
repo: registry.happydomain.org/happydomain
debug: true
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
dockerfile: Dockerfile-builded
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish on Docker Hub - name: publish on Docker Hub
image: plugins/docker image: plugins/docker
settings: settings:
repo: happydns/happydomain repo: happydomain/happydomain
auto_tag: true auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
dockerfile: Dockerfile-builded dockerfile: Dockerfile-builded
@ -597,24 +571,10 @@ steps:
event: event:
- tag - tag
- name: publish on local registry
image: plugins/docker
settings:
registry: registry.happydomain.org
repo: registry.happydomain.org/happydomain
auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
debug: true
dockerfile: Dockerfile-builded
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish on Docker Hub - name: publish on Docker Hub
image: plugins/docker image: plugins/docker
settings: settings:
repo: happydns/happydomain repo: happydomain/happydomain
auto_tag: true auto_tag: true
auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}
dockerfile: Dockerfile-builded dockerfile: Dockerfile-builded
@ -634,17 +594,6 @@ kind: pipeline
name: docker-manifest name: docker-manifest
steps: steps:
- name: publish on local registry
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: .drone-manifest-local.yml
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: publish on Docker Hub - name: publish on Docker Hub
image: plugins/manifest image: plugins/manifest
settings: settings: