|
|
@ -60,20 +60,16 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
# runs 'bundle install' and caches installed gems automatically |
|
|
|
# runs 'bundle install' and caches installed gems automatically |
|
|
|
bundler-cache: true |
|
|
|
bundler-cache: true |
|
|
|
working-directory: ./data-collector |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create DB |
|
|
|
- name: Create DB |
|
|
|
working-directory: ./data-collector |
|
|
|
|
|
|
|
run: | |
|
|
|
run: | |
|
|
|
bundle exec rake db:prepare |
|
|
|
bundle exec rake db:prepare |
|
|
|
|
|
|
|
|
|
|
|
- name: Compile Assets |
|
|
|
- name: Compile Assets |
|
|
|
working-directory: ./data-collector |
|
|
|
|
|
|
|
run: | |
|
|
|
run: | |
|
|
|
bundle exec rake assets:precompile |
|
|
|
bundle exec rake assets:precompile |
|
|
|
|
|
|
|
|
|
|
|
- name: Run tests |
|
|
|
- name: Run tests |
|
|
|
working-directory: ./data-collector |
|
|
|
|
|
|
|
run: | |
|
|
|
run: | |
|
|
|
bundle exec rake |
|
|
|
bundle exec rake |
|
|
|
|
|
|
|
|
|
|
@ -108,7 +104,6 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Build, tag, and push the image to Amazon ECR |
|
|
|
- name: Build, tag, and push the image to Amazon ECR |
|
|
|
id: build-image |
|
|
|
id: build-image |
|
|
|
working-directory: ./data-collector |
|
|
|
|
|
|
|
env: |
|
|
|
env: |
|
|
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} |
|
|
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} |
|
|
|
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }} |
|
|
|
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }} |
|
|
|