forked from External/greenlight
		
	GRN2-346: Workflow changes (#2499)
* Move cd from travis to github * Changes to workflow
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/cd-push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/cd-push.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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} | ||||
|   | ||||
							
								
								
									
										5
									
								
								.github/workflows/cd-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/cd-release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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-} | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
		Reference in New Issue
	
	Block a user