GRN2-346: Workflow changes (#2499)

* Move cd from travis to github

* Changes to workflow
This commit is contained in:
Ahmad Farhat 2021-02-01 18:14:58 -05:00 committed by GitHub
parent 422ded1d3b
commit d64b8d023a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@ env:
RUBY_VERSION: 2.7.2
name: CD
name: CD Push
on:
push:
branches: "master"
@ -18,7 +18,6 @@ jobs:
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
@ -27,4 +26,4 @@ jobs:
with:
push: true
tags: greenlight:latest
build-args: version_code=${GITHUB_SHA::8}
build-args: version_code=${GITHUB_SHA::8}

View File

@ -2,7 +2,7 @@ env:
RUBY_VERSION: 2.7.2
name: CD
name: CD Release
on:
release:
@ -17,7 +17,6 @@ jobs:
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
@ -29,4 +28,4 @@ jobs:
greenlight:latest
greenlight:v2
greenlight:${GITHUB_REF}
build-args: version_code=${GITHUB_REF##*/release-}
build-args: version_code=${GITHUB_REF##*/release-}

View File

@ -59,7 +59,7 @@ jobs:
bundler exec rails db:create RAILS_ENV=test
bundler exec rails db:migrate RAILS_ENV=test
- name: Run Rubocop
run: bundle exec rubocop --fail-level F
run: bundle exec rubocop --parallel --fail-level F
- name: Run RSpec
run: bundle exec rspec