Skip to content

Commit

Permalink
Add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
darkofabijan committed Jun 5, 2020
1 parent 8ee3096 commit 5981fd0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .semaphore/pipeline_2.yml
@@ -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
33 changes: 32 additions & 1 deletion .semaphore/semaphore.yml
@@ -1,5 +1,5 @@
version: v1.0
name: CI pipeline
name: Pack a relase
agent:
machine:
type: e1-standard-2
Expand All @@ -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

0 comments on commit 5981fd0

Please sign in to comment.