add badge

This commit is contained in:
Michael Grote 2023-11-08 13:23:37 +01:00
parent d25febc1a0
commit 0a215bcf3d
2 changed files with 2 additions and 63 deletions

View File

@ -1,63 +0,0 @@
---
kind: pipeline
type: docker
name: linting
steps:
- name: gitleaks
image: plugins/gitleaks
settings:
path: .
when:
event:
exclude:
- tag
- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- "find . -name *.sh -exec shellcheck {} +"
when:
event:
exclude:
- tag
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint Dockerfile
---
kind: pipeline
type: docker
name: selfhosted
depends_on: # bezieht sich auf linting pipeline
- linting
steps:
- name: docker_build_and_push_selfhosted
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/oxidized-selfmade
registry: registry.mgrote.net
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag
- name: docker_build_and_push_selfhosted_tag
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/oxidized-selfmade
registry: registry.mgrote.net
tags:
- ${DRONE_TAG}
when:
event:
- tag

View File

@ -1,5 +1,7 @@
# oxidized-selfmade aka routeros-config-export
[![status-badge](https://ci.mgrote.net/api/badges/6/status.svg)](https://ci.mgrote.net/repos/6)
This is a small script that pulls the config of one or multiple routeros-devices and pushes them into git-repository.
## Usage