Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Add semaphore.yml #510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: v1.0
name: First pipeline example
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: "Build"
task:
env_vars:
- name: APP_ENV
value: prod
jobs:
- name: Docker build
commands:
- checkout
- ls -1
- echo $APP_ENV
- echo "Docker build..."
- echo "done"
- name: "Smoke tests"
task:
jobs:
- name: Smoke
commands:
- checkout
- echo "make smoke"
- name: "Unit tests"
task:
jobs:
- name: RSpec
commands:
- checkout
- echo "make rspec"
- name: Lint code
commands:
- checkout
- echo "make lint"
- name: Check security
commands:
- checkout
- echo "make security"
- name: "Integration tests"
task:
jobs:
- name: Cucumber
commands:
- checkout
- echo "make cucumber"
- name: "Push Image"
task:
jobs:
- name: Push
commands:
- checkout
- echo "make docker.push"