-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed postgres service * Replace postgres config with sqlite3 * Fixed failing migrations * fix ILIKE issue in SQLite * generate values * loading data with indexes, next is start searching * state search done, new method alpharize to convert accented characters to alphanumeric * finish fixing zip code searches * go to lunch, commit to continue * fix specs * delete comments and fix format * description about populate db * items per page flexibility added * add to devcontainer sqlite extension fix instruction in readme file download the new zip codes database add to rake task, the loadev task, to load locally the db * change the port to 80 to avoid aditional azure config add dockerignore exception to /tmp/pids folder * keep the pids folder, because it causes a failure * fix gitignore issue * fix deletion of pids folder that causes a issue when build and deploy * add ci/cd to dockerhub/azure * Update CI & CD workflow to trigger on workflow_dispatch event for test in PR * test pr flow * change to main * fix codeclimate issue try 1 * try 2 * try 3 * try 4 * try 5 * try 6 * try 6 * try 7 * try 8 --------- Co-authored-by: Alexandro Castillo <[email protected]> Co-authored-by: Alex Castillo <[email protected]> Co-authored-by: Alex <[email protected]>
- Loading branch information
1 parent
bf564a9
commit a9fa5af
Showing
51 changed files
with
168,158 additions
and
13,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,10 @@ dev-entrypoint.sh | |
|
||
log/*.log | ||
|
||
tmp/ | ||
tmp/* | ||
!tmp/pids/ | ||
!tmp/pids | ||
!tmp/pids/.keep | ||
|
||
.rspec | ||
spec/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,11 @@ on: | |
description: "The Docker image digest which uniquely identifies the built image" | ||
value: ${{ jobs.test-and-build.outputs.container-image-digest }} | ||
|
||
# On this project, I went with a single "Test & Build" job, since each job | ||
# gets billed rounded to the next minute, and having multiple separated jobs | ||
# is not worth it at the beginning of the project. | ||
|
||
# Keep in mind that, if the test suite becomes too big, and test threading is | ||
# required, or the workflow speed becomes critial, we might need to revert back | ||
# to separated jobs. | ||
# On this project, was some changes to the original workflow, since we are hosting this | ||
# project on Azure Web Apps, we don't need to deploy to Google Cloud Run, so we removed | ||
# the deploy-to-staging and deploy-to-production jobs. | ||
# Instead to deploy, we're just building the image and running the tests. The image will be | ||
# pushed to the Dockerhub, because it's free and we don't need to pay for it. | ||
|
||
jobs: | ||
test-and-build: | ||
|
@@ -83,21 +81,15 @@ jobs: | |
path: | | ||
tmp/capybara/screenshots | ||
- name: Authenticate to Google Cloud | ||
uses: google-github-actions/[email protected] | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
service_account: [email protected] | ||
workload_identity_provider: projects/582875546495/locations/global/workloadIdentityPools/github-pool/providers/github-provider | ||
|
||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/[email protected] | ||
|
||
- name: Authorize push to Google Cloud Artifact Registry | ||
run: gcloud auth configure-docker us-central1-docker.pkg.dev | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build & Push Release Image | ||
id: build-and-push-release-image | ||
uses: docker/build-push-action@v3.1.1 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
target: release | ||
|
@@ -106,9 +98,10 @@ jobs: | |
build-args: | | ||
DEVELOPER_UID=${{ steps.variables.outputs.runner-uid }} | ||
DEVELOPER_USERNAME=${{ steps.variables.outputs.runner-user }} | ||
DEPLOY_NAME=production | ||
tags: | | ||
us-central1-docker.pkg.dev/sepomex-365521/icalialabs-sepomex/sepomex:${{ steps.variables.outputs.git-commit-short-sha }} | ||
us-central1-docker.pkg.dev/sepomex-365521/icalialabs-sepomex/sepomex:${{ steps.variables.outputs.git-dasherized-branch }} | ||
us-central1-docker.pkg.dev/sepomex-365521/icalialabs-sepomex/sepomex:latest | ||
icalia/sepomex:${{ steps.variables.outputs.git-commit-short-sha }} | ||
icalia/sepomex:${{ steps.variables.outputs.git-dasherized-branch }} | ||
icalia/sepomex:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# The behavior of RuboCop can be controlled via the .rubocop.yml | ||
# configuration file. It makes it possible to enable/disable | ||
# certain cops (checks) and to alter their behavior if they accept | ||
# any parameters. The file can be placed either in your home | ||
# directory or in some project directory. | ||
# | ||
# RuboCop will start looking for the configuration file in the directory | ||
# where the inspected file is and continue its way up to the root directory. | ||
# | ||
# See https://docs.rubocop.org/rubocop/configuration | ||
# This is the configuration used by RuboCop. The item 'Enabled' will be read from the default configuration file, but can be overridden in this configuration file. See the RuboCop documentation for more information. | ||
|
||
AllCops: | ||
# Include common Ruby source files | ||
Include: | ||
- '**/*.gemspec' | ||
- '**/Gemfile' | ||
- '**/Rakefile' | ||
# Exclude files that are not part of the project | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'config/**/*' | ||
- 'db/**/*' | ||
- 'log/**/*' | ||
- 'bin/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-2.7.5 | ||
ruby-3.0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.