Apply kubernetes configuration from drone
- name: deploy
image: zzzsochi/kubedrone
settings:
apply_file: build/config.yaml
...
- name: deploy
image: zzzsochi/kubedrone
settings:
apply_kustomize: build/kustomize/stage
...
- name: deploy
image: zzzsochi/kubedrone
settings:
script: build/kustomize/stage
...
- name: deploy
image: zzzsochi/kubedrone
settings:
server: "secret"
server_ca: "secret"
token: "secret"
...
- name: deploy
image: zzzsochi/kubedrone
settings:
server: "secret"
server_ca: "secret"
client_crt: "secret"
client_key: "secret"
...
- name: deploy
image: zzzsochi/kubedrone
settings:
server: "secret"
server_ca: "secret"
username: "secret"
password: "secret"
...
- name: deploy
image: zzzsochi/kubedrone
settings:
eks_cluster_region: "secret"
eks_cluster_name: "secret"
aws_access_key_id: "secret"
aws_secret_access_key: "secret"
...
- name: deploy
image: zzzsochi/kubedrone
settings:
debug: "true"
...
We need to save version when project build for stage and get this version when project deploy from master.
- name: version
image: zzzsochi/kubedrone:version
settings:
command: save
vendor: tc
service: core
status: ok
version_file: build/version
...
This stage will save version to ConfigMap.
- name: version
image: zzzsochi/kubedrone:version
settings:
command: get
vendor: tc
service: core
status: ok
version_file: build/version
...
This stage will create the file build/version
with your project version, saved by previews example.