Set fixed image tag to appleboy/drone-git-push
This commit is contained in:
parent
5c0e5e91b0
commit
83f4d91415
1 changed files with 35 additions and 1 deletions
|
@ -73,7 +73,7 @@ steps:
|
||||||
./deploy/k8s/manifest.yaml
|
./deploy/k8s/manifest.yaml
|
||||||
|
|
||||||
- name: push k8s manifest
|
- name: push k8s manifest
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push:0.2.2
|
||||||
settings:
|
settings:
|
||||||
remote_name: "git@github.com:${DRONE_REPO}"
|
remote_name: "git@github.com:${DRONE_REPO}"
|
||||||
branch: ${DRONE_BRANCH}
|
branch: ${DRONE_BRANCH}
|
||||||
|
@ -99,6 +99,33 @@ volumes:
|
||||||
host:
|
host:
|
||||||
path: /var/lib/.kube
|
path: /var/lib/.kube
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: notify
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: slack
|
||||||
|
image: plugins/slack
|
||||||
|
settings:
|
||||||
|
webhook:
|
||||||
|
from_secret: slack_webhook_url
|
||||||
|
channel: cicd
|
||||||
|
template: >
|
||||||
|
{{#success build.status}}
|
||||||
|
Build and deploy {{build.number}} of {{repo.name}} succeeded.
|
||||||
|
{{else}}
|
||||||
|
Build and deploy {{build.number}} of {{repo.name}} failed.
|
||||||
|
{{/success}}
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: secret
|
kind: secret
|
||||||
name: harbor_registry_drone_password
|
name: harbor_registry_drone_password
|
||||||
|
@ -112,3 +139,10 @@ name: github_ssh_key
|
||||||
get:
|
get:
|
||||||
path: github-ssh-keys
|
path: github-ssh-keys
|
||||||
name: id_rsa
|
name: id_rsa
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: slack_webhook_url
|
||||||
|
get:
|
||||||
|
path: slack-webhook-url
|
||||||
|
name: url
|
Loading…
Reference in a new issue