mirror of
https://github.com/semaphoreci/book-cicd-docker-kubernetes.git
synced 2026-07-11 01:09:18 +00:00
Add deploy
This commit is contained in:
15
.semaphore/pipeline_2.yml
Normal file
15
.semaphore/pipeline_2.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
version: v1.0
|
||||
name: K8s staging cluster
|
||||
blocks:
|
||||
- name: Deploy
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
commands:
|
||||
- checkout
|
||||
- echo "gcloud connect -f ~/tokens.json"
|
||||
- echo "kubectl apply -f stg/stg.yaml"
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu1804
|
||||
@@ -1,5 +1,5 @@
|
||||
version: v1.0
|
||||
name: CI pipeline
|
||||
name: Pack a relase
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
@@ -22,3 +22,34 @@ blocks:
|
||||
- name: Security
|
||||
commands:
|
||||
- ls
|
||||
dependencies: []
|
||||
- name: Unit
|
||||
dependencies:
|
||||
- make
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
commands:
|
||||
- ls
|
||||
- name: 'Job #2'
|
||||
commands: []
|
||||
- name: Inter
|
||||
dependencies:
|
||||
- make
|
||||
task:
|
||||
jobs:
|
||||
- name: Integ
|
||||
commands:
|
||||
- lsls
|
||||
parallelism: 6
|
||||
- name: Pack a relase
|
||||
dependencies:
|
||||
- Inter
|
||||
- Unit
|
||||
task:
|
||||
jobs:
|
||||
- name: 'Job #1'
|
||||
commands: []
|
||||
promotions:
|
||||
- name: Deploy to Stg
|
||||
pipeline_file: pipeline_2.yml
|
||||
|
||||
Reference in New Issue
Block a user