Add deploy

This commit is contained in:
Darko Fabijan
2020-06-05 11:54:26 +00:00
parent 8ee30968a6
commit 5981fd0275
2 changed files with 47 additions and 1 deletions

15
.semaphore/pipeline_2.yml Normal file
View 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

View File

@@ -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