Skip to content

Commit

Permalink
remove unnecessary docker_config secret from drone config
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys committed Jan 16, 2021
1 parent 89f1ecd commit 08926fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
10 changes: 0 additions & 10 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ local PythonVersion(pyversion='3.6') = {

local PipelineLint = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'lint',
platform: {
os: 'linux',
Expand Down Expand Up @@ -59,7 +58,6 @@ local PipelineLint = {

local PipelineTest = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'test',
platform: {
os: 'linux',
Expand Down Expand Up @@ -106,7 +104,6 @@ local PipelineTest = {

local PipelineSecurity = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'security',
platform: {
os: 'linux',
Expand Down Expand Up @@ -137,7 +134,6 @@ local PipelineSecurity = {

local PipelineBuildPackage = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'build-package',
platform: {
os: 'linux',
Expand Down Expand Up @@ -201,7 +197,6 @@ local PipelineBuildPackage = {

local PipelineBuildContainer(arch='amd64') = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'build-container-' + arch,
platform: {
os: 'linux',
Expand All @@ -221,7 +216,6 @@ local PipelineBuildContainer(arch='amd64') = {
name: 'dryrun',
image: 'plugins/docker:19',
settings: {
config: { from_secret: 'docker_config' },
dry_run: true,
dockerfile: 'docker/Dockerfile.' + arch,
repo: 'thegeeklab/${DRONE_REPO_NAME}',
Expand All @@ -237,7 +231,6 @@ local PipelineBuildContainer(arch='amd64') = {
name: 'publish-dockerhub',
image: 'plugins/docker:19',
settings: {
config: { from_secret: 'docker_config' },
auto_tag: true,
auto_tag_suffix: arch,
dockerfile: 'docker/Dockerfile.' + arch,
Expand All @@ -254,7 +247,6 @@ local PipelineBuildContainer(arch='amd64') = {
name: 'publish-quay',
image: 'plugins/docker:19',
settings: {
config: { from_secret: 'docker_config' },
auto_tag: true,
auto_tag_suffix: arch,
dockerfile: 'docker/Dockerfile.' + arch,
Expand All @@ -279,7 +271,6 @@ local PipelineBuildContainer(arch='amd64') = {

local PipelineDocs = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'docs',
platform: {
os: 'linux',
Expand Down Expand Up @@ -383,7 +374,6 @@ local PipelineDocs = {

local PipelineNotifications = {
kind: 'pipeline',
image_pull_secrets: ['docker_config'],
name: 'notifications',
platform: {
os: 'linux',
Expand Down
47 changes: 1 addition & 46 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ steps:
environment:
PY_COLORS: 1

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -117,9 +114,6 @@ steps:
- python38-pytest
- python39-pytest

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -148,9 +142,6 @@ steps:
environment:
PY_COLORS: 1

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -211,9 +202,6 @@ steps:
ref:
- refs/tags/**

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -242,8 +230,6 @@ steps:
- name: dryrun
image: plugins/docker:19
settings:
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.amd64
dry_run: true
password:
Expand All @@ -262,8 +248,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: amd64
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.amd64
password:
from_secret: docker_password
Expand All @@ -282,8 +266,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: amd64
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.amd64
password:
from_secret: quay_password
Expand All @@ -298,9 +280,6 @@ steps:
depends_on:
- dryrun

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -329,8 +308,6 @@ steps:
- name: dryrun
image: plugins/docker:19
settings:
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm64
dry_run: true
password:
Expand All @@ -349,8 +326,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: arm64
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm64
password:
from_secret: docker_password
Expand All @@ -369,8 +344,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: arm64
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm64
password:
from_secret: quay_password
Expand All @@ -385,9 +358,6 @@ steps:
depends_on:
- dryrun

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -416,8 +386,6 @@ steps:
- name: dryrun
image: plugins/docker:19
settings:
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm
dry_run: true
password:
Expand All @@ -436,8 +404,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: arm
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm
password:
from_secret: docker_password
Expand All @@ -456,8 +422,6 @@ steps:
settings:
auto_tag: true
auto_tag_suffix: arm
config:
from_secret: docker_config
dockerfile: docker/Dockerfile.arm
password:
from_secret: quay_password
Expand All @@ -472,9 +436,6 @@ steps:
depends_on:
- dryrun

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -560,9 +521,6 @@ steps:
- refs/heads/main
- refs/tags/**

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand Down Expand Up @@ -654,9 +612,6 @@ steps:
- success
- failure

image_pull_secrets:
- docker_config

trigger:
ref:
- refs/heads/main
Expand All @@ -670,6 +625,6 @@ depends_on:

---
kind: signature
hmac: 75cb012e74da9f8a23a09a4d745512207c7f2d51648b1f8ee1701e3704cfe171
hmac: 0e96890d3f82ec02d345bc2b4a3c37e90ebeab61d21e5a5c519ed63db90f1ac8

...

0 comments on commit 08926fe

Please sign in to comment.