mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 12:50:43 +00:00
add dockerhub auth for ci
This commit is contained in:
parent
885f11fa8a
commit
282e21ef2f
@ -16,6 +16,7 @@ local PythonVersion(pyversion='3.5') = {
|
||||
|
||||
local PipelineLint = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'lint',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -42,6 +43,7 @@ local PipelineLint = {
|
||||
|
||||
local PipelineTest = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'test',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -64,6 +66,7 @@ local PipelineTest = {
|
||||
|
||||
local PipelineSecurity = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'security',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -93,6 +96,7 @@ local PipelineSecurity = {
|
||||
|
||||
local PipelineBuildPackage = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'build-package',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -151,6 +155,7 @@ local PipelineBuildPackage = {
|
||||
|
||||
local PipelineBuildContainer(arch='amd64') = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'build-container-' + arch,
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -168,6 +173,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
name: 'dryrun',
|
||||
image: 'plugins/docker:18-linux-' + arch,
|
||||
settings: {
|
||||
config: { from_secret: 'docker_config' },
|
||||
dry_run: true,
|
||||
dockerfile: 'docker/Dockerfile',
|
||||
repo: 'thegeeklab/${DRONE_REPO_NAME}',
|
||||
@ -183,6 +189,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
name: 'publish-dockerhub',
|
||||
image: 'plugins/docker:18-linux-' + arch,
|
||||
settings: {
|
||||
config: { from_secret: 'docker_config' },
|
||||
auto_tag: true,
|
||||
auto_tag_suffix: arch,
|
||||
dockerfile: 'docker/Dockerfile',
|
||||
@ -199,6 +206,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
name: 'publish-quay',
|
||||
image: 'plugins/docker:18-linux-' + arch,
|
||||
settings: {
|
||||
config: { from_secret: 'docker_config' },
|
||||
auto_tag: true,
|
||||
auto_tag_suffix: arch,
|
||||
dockerfile: 'docker/Dockerfile',
|
||||
@ -223,6 +231,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
|
||||
local PipelineDocs = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'docs',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
@ -331,6 +340,7 @@ local PipelineDocs = {
|
||||
|
||||
local PipelineNotifications = {
|
||||
kind: 'pipeline',
|
||||
image_pull_secrets: ['docker_config'],
|
||||
name: 'notifications',
|
||||
platform: {
|
||||
os: 'linux',
|
||||
|
47
.drone.yml
47
.drone.yml
@ -16,6 +16,9 @@ steps:
|
||||
environment:
|
||||
PY_COLORS: 1
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -86,6 +89,9 @@ steps:
|
||||
depends_on:
|
||||
- clone
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -113,6 +119,9 @@ steps:
|
||||
environment:
|
||||
PY_COLORS: 1
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -169,6 +178,9 @@ steps:
|
||||
ref:
|
||||
- refs/tags/**
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -195,6 +207,8 @@ steps:
|
||||
- name: dryrun
|
||||
image: plugins/docker:18-linux-amd64
|
||||
settings:
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
dry_run: true
|
||||
password:
|
||||
@ -213,6 +227,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: amd64
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: docker_password
|
||||
@ -231,6 +247,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: amd64
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: quay_password
|
||||
@ -245,6 +263,9 @@ steps:
|
||||
depends_on:
|
||||
- dryrun
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -271,6 +292,8 @@ steps:
|
||||
- name: dryrun
|
||||
image: plugins/docker:18-linux-arm64
|
||||
settings:
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
dry_run: true
|
||||
password:
|
||||
@ -289,6 +312,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm64
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: docker_password
|
||||
@ -307,6 +332,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm64
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: quay_password
|
||||
@ -321,6 +348,9 @@ steps:
|
||||
depends_on:
|
||||
- dryrun
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -347,6 +377,8 @@ steps:
|
||||
- name: dryrun
|
||||
image: plugins/docker:18-linux-arm
|
||||
settings:
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
dry_run: true
|
||||
password:
|
||||
@ -365,6 +397,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: docker_password
|
||||
@ -383,6 +417,8 @@ steps:
|
||||
settings:
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm
|
||||
config:
|
||||
from_secret: docker_config
|
||||
dockerfile: docker/Dockerfile
|
||||
password:
|
||||
from_secret: quay_password
|
||||
@ -397,6 +433,9 @@ steps:
|
||||
depends_on:
|
||||
- dryrun
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -486,6 +525,9 @@ steps:
|
||||
- refs/heads/master
|
||||
- refs/tags/**
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -579,6 +621,9 @@ steps:
|
||||
- success
|
||||
- failure
|
||||
|
||||
image_pull_secrets:
|
||||
- docker_config
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/master
|
||||
@ -592,6 +637,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: e633e5064224d4db579e4592dea0ca83a1b601f2dbcecb07ec8064b5cdb39e78
|
||||
hmac: 8f057b4d2d6c2ea3bf6e683aa43b869e09334340343fe006c373b8c7f69c98ae
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user