All checks were successful
continuous-integration/drone/push Build is passing
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: bellscheduler-testing
|
|
globals:
|
|
- &docker_creds
|
|
username:
|
|
from_secret: REGISTRY_USERNAME
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|
|
steps:
|
|
- name: brand commit before build
|
|
image: bash
|
|
commands:
|
|
- echo ${DRONE_COMMIT_SHA:0:7} > app/__commit__
|
|
- name: build app-testing
|
|
image: plugins/docker
|
|
settings:
|
|
repo: container-registry.infra.dubyatp.xyz/bellscheduler/app
|
|
registry: container-registry.infra.dubyatp.xyz
|
|
dockerfile: ./Dockerfile
|
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest-testing"]
|
|
<<: *docker_creds
|
|
|
|
trigger:
|
|
branch:
|
|
- testing
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: bellscheduler-prod
|
|
globals:
|
|
- &docker_creds
|
|
username:
|
|
from_secret: REGISTRY_USERNAME
|
|
password:
|
|
from_secret: REGISTRY_PASSWORD
|
|
steps:
|
|
- name: brand commit before build
|
|
image: bash
|
|
commands:
|
|
- echo ${DRONE_COMMIT_SHA:0:7} > app/__commit__
|
|
- name: build-app-prod
|
|
image: plugins/docker
|
|
settings:
|
|
repo: container-registry.infra.dubyatp.xyz/bellscheduler/app
|
|
registry: container-registry.infra.dubyatp.xyz
|
|
dockerfile: ./Dockerfile
|
|
tags: ["${DRONE_COMMIT_SHA:0:7}", "latest-prod"]
|
|
<<: *docker_creds
|
|
trigger:
|
|
branch:
|
|
- master
|
|
event:
|
|
exclude:
|
|
- pull_request |