Compare commits

...

17 Commits

Author SHA1 Message Date
0735e96913 fix(ci): resource limits
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-22 13:10:08 +02:00
bf78871aea fix(ci): use fully qualified image name
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2022-05-22 13:02:29 +02:00
f63389ac04 fix(ci): use gitea to sync repo with github
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-03 17:46:13 +02:00
3ff4747896 Merge pull request 'chore(deps): update dependency docker.io/library/alpine to v3.15.4' (#8) from renovate/docker.io-library-alpine-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2022-04-15 21:28:23 +00:00
102390a79f chore(deps): update dependency docker.io/library/alpine to v3.15.4
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-04-05 02:03:38 +02:00
fbca3c03ee Merge pull request 'chore(deps): update dependency docker.io/library/alpine to v3.15.3' (#7) from renovate/docker.io-library-alpine-3.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2022-04-01 19:00:31 +00:00
0e6c19c4c0 chore(deps): update dependency docker.io/library/alpine to v3.15.3
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-03-29 09:01:57 +02:00
aba1081455 Merge pull request 'chore(deps): update dependency docker.io/library/alpine to v3.15.1' (#6) from renovate/docker.io-library-alpine-3.x into master
Reviewed-on: #6
2022-03-17 17:58:47 +00:00
f483aad5aa chore(deps): update dependency docker.io/library/alpine to v3.15.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-03-17 04:02:00 +01:00
49e7b2f36f chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.31.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-02-09 19:31:59 +00:00
cfb484270d Merge pull request 'chore(deps): update docker.io/library/alpine docker tag to v3.15.0' (#4) from renovate/docker.io-library-alpine-3.x into master
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Reviewed-on: #4
2022-01-30 20:41:17 +00:00
82073fa180 chore(deps): update docker.io/library/alpine docker tag to v3.15.0
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-01-30 18:01:19 +00:00
eff0d2c0c9 fix(ci): add package rules
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 18:20:35 +01:00
b858b9a4be fix(ci): renovate rebase conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-30 12:13:31 +02:00
b96135d216 chore(deps): update docker.io/library/alpine docker tag to v3.14.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2021-10-24 16:43:00 +02:00
89939dcbce fix(ci): add renovate config
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-24 16:40:49 +02:00
9e8776d1c7 fix(ci): dependencies and conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-12 21:55:11 +02:00
4 changed files with 376 additions and 92 deletions

View File

@@ -11,11 +11,11 @@ steps:
- name: markdown lint - name: markdown lint
commands: commands:
- markdownlint *.md - markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.28.1 image: docker.io/volkerraschek/markdownlint:0.31.1
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 50M memory: 150M
- name: email-notification - name: email-notification
environment: environment:
@@ -30,8 +30,8 @@ steps:
image: docker.io/drillster/drone-email:latest image: docker.io/drillster/drone-email:latest
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@@ -41,6 +41,190 @@ trigger:
event: event:
exclude: exclude:
- tag - tag
---
kind: pipeline
type: docker
name: dry-run-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
dry_run: true
tags: latest-amd64
repo: volkerraschek/network-tools
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/network-tools
---
kind: pipeline
type: docker
name: dry-run-arm-v7
platform:
os: linux
arch: arm
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
dry_run: true
tags: latest-arm-v7
repo: volkerraschek/network-tools
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/network-tools
---
kind: pipeline
type: docker
name: dry-run-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
dry_run: true
tags: latest-arm64-v8
repo: volkerraschek/network-tools
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/network-tools
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@@ -52,7 +236,7 @@ platform:
steps: steps:
- name: build - name: build
image: plugins/docker image: docker.io/plugins/docker:latest
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
auto_tag: false auto_tag: false
@@ -66,12 +250,9 @@ steps:
volumes: volumes:
- name: docker_socket - name: docker_socket
path: /var/run/docker.sock path: /var/run/docker.sock
when:
branch:
- master
- name: notify - name: notify
image: drillster/drone-email image: docker.io/drillster/drone-email:latest
environment: environment:
PLUGIN_HOST: PLUGIN_HOST:
from_secret: smtp_host from_secret: smtp_host
@@ -91,15 +272,22 @@ volumes:
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock
depends_on:
- linter
trigger: trigger:
branch:
- master
event: event:
exclude: - cron
- tag - push
repo:
- volker.raschek/network-tools
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: latest-armv7 name: latest-arm-v7
platform: platform:
os: linux os: linux
@@ -107,23 +295,23 @@ platform:
steps: steps:
- name: build - name: build
image: plugins/docker image: docker.io/plugins/docker:latest
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
auto_tag: false auto_tag: false
tags: latest-armv7 tags: latest-arm-v7
repo: volkerraschek/network-tools repo: volkerraschek/network-tools
username: username:
from_secret: container_image_registry_user from_secret: container_image_registry_user
password: password:
from_secret: container_image_registry_password from_secret: container_image_registry_password
no_cache: true no_cache: true
when: volumes:
branch: - name: docker_socket
- master path: /var/run/docker.sock
- name: notify - name: notify
image: drillster/drone-email image: docker.io/drillster/drone-email:latest
environment: environment:
PLUGIN_HOST: PLUGIN_HOST:
from_secret: smtp_host from_secret: smtp_host
@@ -133,9 +321,6 @@ steps:
from_secret: smtp_password from_secret: smtp_password
PLUGIN_FROM: PLUGIN_FROM:
from_secret: smtp_mail_address from_secret: smtp_mail_address
volumes:
- name: docker_socket
path: /var/run/docker.sock
when: when:
status: status:
- changed - changed
@@ -146,10 +331,76 @@ volumes:
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock
depends_on:
- linter
trigger: trigger:
branch:
- master
event: event:
exclude: - cron
- tag - push
repo:
- volker.raschek/network-tools
---
kind: pipeline
type: docker
name: latest-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
tags: latest-arm64-v8
repo: volkerraschek/network-tools
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/network-tools
--- ---
kind: pipeline kind: pipeline
@@ -158,7 +409,7 @@ name: latest-manifest
steps: steps:
- name: build-manifest - name: build-manifest
image: plugins/manifest image: docker.io/plugins/manifest:latest
settings: settings:
auto_tag: false auto_tag: false
ignore_missing: true ignore_missing: true
@@ -181,8 +432,8 @@ steps:
from_secret: smtp_mail_address from_secret: smtp_mail_address
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@@ -190,12 +441,17 @@ steps:
depends_on: depends_on:
- latest-amd64 - latest-amd64
- latest-armv7 - latest-arm-v7
- latest-arm64-v8
trigger: trigger:
branch:
- master
event: event:
exclude: - cron
- tag - push
repo:
- volker.raschek/network-tools
--- ---
kind: pipeline kind: pipeline
@@ -208,7 +464,7 @@ platform:
steps: steps:
- name: build - name: build
image: plugins/docker image: docker.io/plugins/docker:latest
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
auto_tag: true auto_tag: true
@@ -224,7 +480,7 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: notify - name: notify
image: drillster/drone-email image: docker.io/drillster/drone-email:latest
environment: environment:
PLUGIN_HOST: PLUGIN_HOST:
from_secret: smtp_host from_secret: smtp_host
@@ -253,7 +509,7 @@ trigger:
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: tagged-armv7 name: tagged-arm-v7
platform: platform:
os: linux os: linux
@@ -261,11 +517,11 @@ platform:
steps: steps:
- name: build - name: build
image: plugins/docker image: docker.io/plugins/docker:latest
settings: settings:
dockerfile: Dockerfile dockerfile: Dockerfile
auto_tag: true auto_tag: true
auto_tag_suffix: armv7 auto_tag_suffix: arm-v7
repo: volkerraschek/network-tools repo: volkerraschek/network-tools
username: username:
from_secret: container_image_registry_user from_secret: container_image_registry_user
@@ -277,7 +533,60 @@ steps:
path: /var/run/docker.sock path: /var/run/docker.sock
- name: notify - name: notify
image: drillster/drone-email image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
trigger:
event:
- tag
repo:
- volker.raschek/network-tools
---
kind: pipeline
type: docker
name: tagged-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: arm64-v8
repo: volkerraschek/network-tools
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: docker.io/drillster/drone-email:latest
environment: environment:
PLUGIN_HOST: PLUGIN_HOST:
from_secret: smtp_host from_secret: smtp_host
@@ -310,7 +619,7 @@ name: tagged-manifest
steps: steps:
- name: build-manifest - name: build-manifest
image: plugins/manifest image: docker.io/plugins/manifest:latest
settings: settings:
auto_tag: true auto_tag: true
ignore_missing: true ignore_missing: true
@@ -333,8 +642,8 @@ steps:
from_secret: smtp_mail_address from_secret: smtp_mail_address
resources: resources:
limits: limits:
cpu: 50 cpu: 150
memory: 25M memory: 150M
when: when:
status: status:
- changed - changed
@@ -342,59 +651,11 @@ steps:
depends_on: depends_on:
- tagged-amd64 - tagged-amd64
- tagged-armv7 - tagged-arm-v7
- tagged-arm64-v8
trigger: trigger:
event: event:
- tag - tag
repo: repo:
- volker.raschek/network-tools - volker.raschek/network-tools
---
kind: pipeline
type: kubernetes
name: sync
platform:
os: linux
arch: amd64
steps:
- name: github
image: docker.io/appleboy/drone-git-push:latest
resources:
limits:
cpu: 50
memory: 25M
settings:
branch: master
remote: ssh://git@github.com/volker-raschek/network-tools.git
force: true
ssh_key:
from_secret: ssh_key
- name: email-notification
environment:
PLUGIN_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
when:
status:
- changed
- failure
trigger:
event:
- push
repo:
- volker.raschek/network-tools

View File

@@ -1,4 +1,4 @@
FROM docker.io/library/alpine:3.14.2 FROM docker.io/library/alpine:3.15.4
RUN apk add bind-tools curl iputils RUN apk add bind-tools curl iputils

View File

@@ -13,8 +13,14 @@ manifests:
architecture: amd64 architecture: amd64
os: linux os: linux
- -
image: volkerraschek/network-tools:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-armv7 image: volkerraschek/network-tools:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm-v7
platform: platform:
architecture: arm architecture: arm
os: linux os: linux
variant: v7 variant: v7
-
image: volkerraschek/network-tools:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm64-v8
platform:
architecture: arm64
os: linux
variant: v8

17
renovate.json Normal file
View File

@@ -0,0 +1,17 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [ "volker.raschek" ],
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch"
}