-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates Ruby version to 3.3.6. * Updates Node version to 20.18.0. * Updates bundler, oj, rails, and rubocop in Ruby. * Updates @stylistic/eslint-plugin-js, chai, eslint, sinon, and sinon-chai in JavaScript. * Adds importmap-rails, kamal, litestream, solid_cable, solid_cache, solid_queue, sqlite3, stimulus-rails, tailwindcss-rails, and thruster in Ruby. * Adds c8 in JavaScript. * Removes cacheflow, dotenv, pg, prosopite, and strong_migrations in Ruby. * Removes @babel/core, @babel/eslint-parser, @babel/preset-env, @babel/register, @hotwired/turbo-rails, @tailwindcss/forms, babel-plugin-dynamic-import-node, babel-plugin-istanbul, esbuild, esbuild-plugin-yaml, i18n-js, mocha-yaml-loader, nyc, tailwindcss, and yaml in JavaScript.
- Loading branch information
1 parent
c011dac
commit ecaefb3
Showing
130 changed files
with
2,417 additions
and
4,851 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,83 @@ | ||
# See https://docs.docker.com/engine/reference/builder/#dockerignore-file for | ||
# more about ignoring files. | ||
|
||
# Ignore bundler configuration. | ||
/.bundle | ||
|
||
# Ignore Docker-related files. | ||
/.dockerignore | ||
/Dockerfile* | ||
|
||
# Ignore all environment files. | ||
/.env* | ||
|
||
# Ignore git directory and files. | ||
/.git/ | ||
/.gitattributes | ||
/.gitignore | ||
|
||
# Ignore GitHub files. | ||
/.github | ||
|
||
# Ignore Ruby-related files. | ||
/.rubocop.yml | ||
/.ruby-lsp/ | ||
|
||
# Ignore any asset builds. | ||
/app/assets/builds/* | ||
!/app/assets/builds/.keep | ||
|
||
# Ignore binary files. | ||
bin/brakeman | ||
bin/dev | ||
bin/mocha | ||
bin/rubocop | ||
bin/setup | ||
|
||
# Ignore all default key files. | ||
/config/master.key | ||
/config/credentials/*.key | ||
|
||
# Ignore development Rake tasks. | ||
lib/tasks/check.rake | ||
lib/tasks/css.rake | ||
lib/tasks/javascript.rake | ||
lib/tasks/ruby.rake | ||
|
||
# Ignore all logs and temporary files. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Ignore any development and test files. | ||
/node_modules | ||
/spec | ||
/.yarn | ||
.erb-lint.yml | ||
.stylelintignore | ||
.stylelintrc.json | ||
.tool-versions | ||
.yarnrc.yml | ||
Procfile.dev | ||
README.md | ||
eslint.config.cjs | ||
package.json | ||
yarn.lock | ||
|
||
# Ignore any pre-compiled assets. | ||
/public/assets | ||
|
||
# Ignore any SQLite databases. | ||
/storage/* | ||
!/storage/.keep | ||
|
||
# Ignore PID files. | ||
/tmp/pids/* | ||
!/tmp/pids/ | ||
!/tmp/pids/.keep | ||
|
||
# Ignore storage for uploaded files in development. | ||
/tmp/storage/* | ||
!/tmp/storage/ | ||
!/tmp/storage/.keep |
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,5 @@ | ||
KAMAL_REGISTRY_PASSWORD="GITHUB_TOKEN" | ||
LITESTREAM_ACCESS_KEY_ID="S3_ACCESS_KEY" | ||
LITESTREAM_REPLICA_HOST="S3_HOSTNAME" | ||
LITESTREAM_SECRET_ACCESS_KEY="S3_ACCESS_KEY" | ||
SECRET_KEY_BASE="SECRET_KEY" |
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,15 @@ | ||
# See https://git-scm.com/docs/gitattributes for more about git | ||
# attribute files. | ||
|
||
# Mark the Bundler lock file as having been generated. | ||
Gemfile.lock linguist-generated=true | ||
|
||
# Customize the difference command for the Rails credentials. | ||
config/credentials/*.yml.enc diff=rails_credentials | ||
config/credentials.yml.enc diff=rails_credentials | ||
|
||
# Mark the database schema as having been generated. | ||
db/*schema.rb linguist-generated | ||
|
||
# Mark any vendored files as having been vendored. | ||
vendor/* linguist-vendored |
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,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "bundler" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
open-pull-requests-limit: 10 |
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,52 @@ | ||
name: CD | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- td-upgrades | ||
workflow_call: | ||
|
||
jobs: | ||
Build: | ||
uses: ./.github/workflows/ci.yml | ||
|
||
Deploy: | ||
runs-on: ubuntu-latest | ||
needs: Build | ||
concurrency: | ||
group: cd-production | ||
env: | ||
DESTINATION: production | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Start the SSH agent | ||
uses: webfactory/ssh-agent@v0.9.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Set up Docker Buildx for cache | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Expose the GitHub Runtime for cache | ||
uses: crazy-max/ghaction-github-runtime@v3 | ||
|
||
- name: Deploy the application | ||
shell: bash | ||
env: | ||
${{ insert }}: ${{ secrets }} | ||
DOCKER_BUILDKIT: 1 | ||
KAMAL_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
run: bin/kamal deploy --destination=$DESTINATION | ||
|
||
- name: Release the Kamal lock, if needed | ||
shell: bash | ||
if: ${{ cancelled() || failure() }} | ||
run: bin/kamal lock release --destination=$DESTINATION |
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 |
---|---|---|
@@ -1,14 +1,39 @@ | ||
/.yarn/* | ||
# Ignore all environment files. | ||
/.env* | ||
!.env.example | ||
|
||
# Ignore Yarn files. | ||
/.yarn | ||
|
||
# Ignore any asset builds. | ||
/app/assets/builds/* | ||
!/app/assets/builds/.keep | ||
|
||
# Ignore master key for decrypting credentials and more. | ||
/config/master.key | ||
/coverage/ | ||
/log/ | ||
/node_modules/ | ||
/tmp/ | ||
|
||
!/app/assets/builds/.keep | ||
!/.yarn/patches | ||
!/.yarn/plugins | ||
!/.yarn/releases | ||
!/.yarn/sdks | ||
!/.yarn/versions | ||
# Ignore all logs and temporary files. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Ignore any development dependencies. | ||
/node_modules | ||
|
||
# Ignore any pre-compiled assets. | ||
/public/assets | ||
|
||
# Ignore any SQLite databases. | ||
/storage/* | ||
!/storage/.keep | ||
|
||
# Ignore PID files. | ||
/tmp/pids/* | ||
!/tmp/pids/ | ||
!/tmp/pids/.keep | ||
|
||
# Ignore storage for uploaded files in development. | ||
/tmp/storage/* | ||
!/tmp/storage/ | ||
!/tmp/storage/.keep |
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,13 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# A sample docker-setup hook | ||
# | ||
# Sets up a Docker network on defined hosts which can then be used by the application’s containers | ||
|
||
hosts = ENV["KAMAL_HOSTS"].split(",") | ||
|
||
hosts.each do |ip| | ||
destination = "root@#{ip}" | ||
puts "Creating a Docker network \"kamal\" on #{destination}" | ||
`ssh #{destination} docker network create kamal` | ||
end |
Oops, something went wrong.