Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added .drone.yml config #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 117 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
kind: pipeline
name: pipeline
type: docker

steps:
- name: build and publish
image: plugins/docker
settings:
repo:
from_secret: docker_repository
tags:
- ${DRONE_BRANCH}
dockerfile: Dockerfile
custom_dns: ['192.168.8.5', '192.168.8.6']
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
branch: [ main ]

- name: build and publish release
image: plugins/docker
custom_dns: ['192.168.8.5', '192.168.8.6']
settings:
repo:
from_secret: docker_repository
tags: ${DRONE_TAG}
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
event:
- tag

- name: rollout
image: quving/drone-rancher-cicd:v1.1.0
settings:
stamp: ${DRONE_COMMIT}
kubectl_options: '--insecure-skip-tls-verify'
kubernetes_deployment: 'citygml-to-geojson'
kubernetes_namespace: '---
kind: pipeline
name: pipeline
type: docker

steps:
- name: build and publish
image: plugins/docker
settings:
repo:
from_secret: docker_repository
tags:
- ${DRONE_BRANCH}
dockerfile: Dockerfile
custom_dns: ['192.168.8.5', '192.168.8.6']
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
branch: [ main ]

- name: build and publish release
image: plugins/docker
custom_dns: ['192.168.8.5', '192.168.8.6']
settings:
repo:
from_secret: docker_repository
tags: ${DRONE_TAG}
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
event:
- tag

- name: rollout
image: quving/drone-rancher-cicd:v1.1.0
settings:
stamp: ${DRONE_COMMIT}
kubectl_options: '--insecure-skip-tls-verify'
kubernetes_deployment: 'noise-api-v2,noise-worker-v2'
kubernetes_namespace: 'cut-prototyp-develop'
rancher_url:
from_secret: rancher_url
rancher_token:
from_secret: rancher_token
rancher_context:
from_secret: rancher_context
when:
status: [ success ]
branch: [ main ]'
rancher_url:
from_secret: rancher_url
rancher_token:
from_secret: rancher_token
rancher_context:
from_secret: rancher_context
when:
status: [ success ]
branch: [ main ]