Sha256: 9d240b9fd4cd9a03a93da33950d29ace4e18c69dd2d6f5dd0b9e81226985ab1e

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

version: v1.0
name: Betterlog pipeline
agent:
  machine:
    type: e1-standard-2
    os_image: ubuntu1804

blocks:
  - name: Caching
    task:
      prologue:
        commands:
          - checkout
      jobs:
        - name: cache bundle
          commands:
            - sem-version ruby 2.7.2
            - cache restore gems-$SEMAPHORE_GIT_BRANCH,gems-master
            - bundle config jobs $(getconf _NPROCESSORS_ONLN)
            - bundle install
            - cache store gems-$SEMAPHORE_GIT_BRANCH vendor/bundle

  - name: "Unit tests"
    task:
      env_vars:
        - name: RAILS_ENV
          value: test
      prologue:
        commands:
          - checkout

          # Setup ruby
          - sem-version ruby 2.7.2

          # Setup gems
          - cache restore gems-$SEMAPHORE_GIT_BRANCH,gems-master
          - bundle config jobs $(getconf _NPROCESSORS_ONLN)
          - bundle install

      jobs:
        - name: RSpec Unit Tests
          commands:
            - rake

  - name: Building Docker Image
    task:

      secrets:
        - name: GCP

      prologue:
        commands:
          - gcloud auth activate-service-account --key-file=.secrets/gcp.json
          - gcloud auth configure-docker -q
          - checkout

      jobs:
        - name: Building and pushing
          commands:
            - make build push-latest

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
betterlog-0.15.1 .semaphore/semaphore.yml
betterlog-0.15.0 .semaphore/semaphore.yml