Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actionpack from 7.1.3.2 to 7.1.3.4 #171

Closed
wants to merge 1,451 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1451 commits
Select commit Hold shift + click to select a range
ae1f1ac
update ruby version, fix syntax of html
cpcwood May 26, 2021
23cce31
update sass syntax
cpcwood May 26, 2021
387eb98
update ruby version in CI
cpcwood May 26, 2021
4baaf6a
extract environment variables from application code into inital config
cpcwood May 26, 2021
a320022
CircleCI automerge dependency-update >> master
cpcwood May 26, 2021
fa289bf
Bump addressable from 2.7.0 to 2.8.0
dependabot[bot] Jul 13, 2021
8378a71
Bump tar from 6.1.0 to 6.1.4
dependabot[bot] Aug 3, 2021
07c78ab
CircleCI automerge dependabot/npm_and_yarn/tar-6.1.4 >> master
cpcwood Aug 3, 2021
a15163d
Bump ws from 6.2.1 to 6.2.2
dependabot[bot] Aug 3, 2021
fc4ceb5
CircleCI automerge dependabot/npm_and_yarn/ws-6.2.2 >> master
cpcwood Aug 3, 2021
0564a2d
CircleCI automerge dependabot/bundler/addressable-2.8.0 >> master
cpcwood Aug 6, 2021
ad3700e
Bump tar from 6.1.4 to 6.1.11
dependabot[bot] Aug 31, 2021
97c7b4f
CircleCI automerge dependabot/npm_and_yarn/tar-6.1.11 >> master
cpcwood Aug 31, 2021
e28d62e
Bump url-parse from 1.5.1 to 1.5.3
dependabot[bot] Aug 31, 2021
52e455a
CircleCI automerge dependabot/npm_and_yarn/url-parse-1.5.3 >> master
cpcwood Aug 31, 2021
ae5c96f
Bump object-path from 0.11.5 to 0.11.6
dependabot[bot] Sep 2, 2021
9885c21
CircleCI automerge dependabot/npm_and_yarn/object-path-0.11.6 >> master
cpcwood Sep 2, 2021
1bb3243
Bump object-path from 0.11.6 to 0.11.8
dependabot[bot] Sep 21, 2021
94849c5
CircleCI automerge dependabot/npm_and_yarn/object-path-0.11.8 >> master
cpcwood Sep 21, 2021
d886af8
Bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Sep 21, 2021
b603eb7
CircleCI automerge dependabot/npm_and_yarn/tmpl-1.0.5 >> master
cpcwood Sep 21, 2021
057c575
fix typo in readme
cpcwood Sep 24, 2021
74a1238
update gems
cpcwood Sep 24, 2021
22e4944
update node packages
cpcwood Sep 24, 2021
f9b1c43
CircleCI automerge maintenance-2021-09 >> master
cpcwood Sep 24, 2021
f68cd59
Bump nokogiri from 1.12.4 to 1.12.5
dependabot[bot] Sep 28, 2021
e3395be
CircleCI automerge dependabot/bundler/nokogiri-1.12.5 >> master
cpcwood Sep 28, 2021
764b3b0
update node packages
cpcwood Sep 28, 2021
85effd9
update js test environment
cpcwood Sep 28, 2021
c76e50e
CircleCI automerge dependency-updates-2021-09 >> master
cpcwood Sep 28, 2021
a6915ad
fix js package versioning
cpcwood Sep 30, 2021
fb8a3cc
Bump puma from 5.5.0 to 5.5.1
dependabot[bot] Oct 12, 2021
2253f68
CircleCI automerge dependabot/bundler/puma-5.5.1 >> master
cpcwood Oct 12, 2021
4e5b992
update npm packages
cpcwood Oct 12, 2021
a0c0059
update gems
cpcwood Oct 12, 2021
49ea657
update ruby version
cpcwood Oct 12, 2021
9eb1ebc
fix header image scroll lag
cpcwood Oct 12, 2021
8cff122
update specs to match new header scroll controller
cpcwood Oct 25, 2021
aca3f8e
update ci config
cpcwood Oct 25, 2021
72049a0
revert circleci orb updates
cpcwood Oct 25, 2021
82ccef4
CircleCI automerge update-header >> master
cpcwood Oct 25, 2021
ce5e8da
update CI docker version
cpcwood Oct 25, 2021
c93c4b1
Bump follow-redirects from 1.14.4 to 1.14.7
dependabot[bot] Jan 14, 2022
f3f2330
CircleCI automerge dependabot/npm_and_yarn/follow-redirects-1.14.7 >>…
cpcwood Jan 14, 2022
57eca61
Bump node-forge from 0.10.0 to 1.0.0
dependabot[bot] Jan 14, 2022
77b94ed
CircleCI automerge dependabot/npm_and_yarn/node-forge-1.0.0 >> master
cpcwood Jan 14, 2022
4ce968d
Bump sidekiq from 6.2.2 to 6.4.0
dependabot[bot] Jan 27, 2022
b04a1ab
CircleCI automerge dependabot/bundler/sidekiq-6.4.0 >> master
cpcwood Jan 27, 2022
6e12465
Bump puma from 5.5.1 to 5.6.2
dependabot[bot] Feb 11, 2022
691bad8
CircleCI automerge dependabot/bundler/puma-5.6.2 >> master
cpcwood Feb 11, 2022
a20f0b1
Bump follow-redirects from 1.14.7 to 1.14.8
dependabot[bot] Feb 13, 2022
5268113
CircleCI automerge dependabot/npm_and_yarn/follow-redirects-1.14.8 >>…
cpcwood Feb 13, 2022
2e8e7cb
update header scroll ratio
cpcwood Feb 14, 2022
114dbe7
update dependencies
cpcwood Feb 14, 2022
c5eb6de
remove rendundant scrollbars on code blocks
cpcwood Feb 14, 2022
cddfc37
fix markdown line height
cpcwood Feb 14, 2022
4c2c76f
CircleCI automerge bug-update-styles >> master
cpcwood Feb 14, 2022
eb83e06
update branding
cpcwood Feb 16, 2022
55cda62
CircleCI automerge refactor-update-branding >> master
cpcwood Feb 16, 2022
e839161
[REFACTOR] update favicon
cpcwood Feb 16, 2022
0650ce3
[REFACTOR] Update favicon and site logo
cpcwood Feb 17, 2022
b33e50a
[REFACTOR] update site social media logo
cpcwood Feb 17, 2022
b1e45df
Bump nokogiri from 1.13.1 to 1.13.3
dependabot[bot] Feb 26, 2022
f24a3f6
CircleCI automerge dependabot/bundler/nokogiri-1.13.3 >> master
cpcwood Feb 26, 2022
757a313
Bump url-parse from 1.5.6 to 1.5.10
dependabot[bot] Feb 26, 2022
2303a1a
CircleCI automerge dependabot/npm_and_yarn/url-parse-1.5.10 >> master
cpcwood Feb 26, 2022
9a1d883
[CHORE] Update kube config to use local storage instead of AWS EBS
cpcwood Feb 28, 2022
9d8ae57
Bump image_processing from 1.12.1 to 1.12.2
dependabot[bot] Mar 1, 2022
8f21578
CircleCI automerge dependabot/bundler/image_processing-1.12.2 >> master
cpcwood Mar 1, 2022
3aed32f
Bump node-forge from 1.2.1 to 1.3.0
dependabot[bot] Mar 26, 2022
8061857
CircleCI automerge dependabot/npm_and_yarn/node-forge-1.3.0 >> master
cpcwood Mar 26, 2022
d148690
Bump plist from 3.0.4 to 3.0.5
dependabot[bot] Mar 26, 2022
6290b19
CircleCI automerge dependabot/npm_and_yarn/plist-3.0.5 >> master
cpcwood Mar 26, 2022
72e1b8c
Bump puma from 5.6.2 to 5.6.4
dependabot[bot] Mar 30, 2022
7076d35
CircleCI automerge dependabot/bundler/puma-5.6.4 >> master
cpcwood Mar 30, 2022
339fe8e
Bump nokogiri from 1.13.3 to 1.13.4
dependabot[bot] Apr 12, 2022
78d15b1
CircleCI automerge dependabot/bundler/nokogiri-1.13.4 >> master
cpcwood Apr 12, 2022
bfb686d
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Apr 29, 2022
9c34598
CircleCI automerge dependabot/npm_and_yarn/async-2.6.4 >> master
cpcwood Apr 29, 2022
a7af311
Bump nokogiri from 1.13.4 to 1.13.6
dependabot[bot] May 19, 2022
c4090c6
CircleCI automerge dependabot/bundler/nokogiri-1.13.6 >> master
cpcwood May 19, 2022
2139001
Bump eventsource from 1.1.0 to 1.1.1
dependabot[bot] Jun 1, 2022
171e5a9
CircleCI automerge dependabot/npm_and_yarn/eventsource-1.1.1 >> master
cpcwood Jun 1, 2022
eff1db3
Bump rack from 2.2.3 to 2.2.3.1
dependabot[bot] Jun 1, 2022
be4d99a
CircleCI automerge dependabot/bundler/rack-2.2.3.1 >> master
cpcwood Jun 1, 2022
b5efcef
Bump jmespath from 1.5.0 to 1.6.1
dependabot[bot] Jun 7, 2022
725b442
CircleCI automerge dependabot/bundler/jmespath-1.6.1 >> master
cpcwood Jun 7, 2022
d5e59af
Bump jpeg-js from 0.4.3 to 0.4.4
dependabot[bot] Jun 17, 2022
53b8d98
CircleCI automerge dependabot/npm_and_yarn/jpeg-js-0.4.4 >> master
cpcwood Jun 17, 2022
358fdb3
Bump rails-html-sanitizer from 1.4.2 to 1.4.3
dependabot[bot] Jul 6, 2022
718a319
CircleCI automerge dependabot/bundler/rails-html-sanitizer-1.4.3 >> m…
cpcwood Jul 6, 2022
3d366d6
Bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jul 20, 2022
ddf34d2
CircleCI automerge dependabot/npm_and_yarn/terser-4.8.1 >> master
cpcwood Jul 20, 2022
f123fef
Use tasks file format for dev tooling instead of individual scipts
cpcwood Jul 22, 2022
040e438
Update config.yml
cpcwood Jul 22, 2022
1e6e278
Update config.yml
cpcwood Jul 22, 2022
c874737
Update config.yml
cpcwood Jul 22, 2022
df2a7e2
Update config.yml
cpcwood Jul 22, 2022
89666ae
Update readme to match new dev tooling
cpcwood Jul 24, 2022
d26a6aa
CircleCI automerge update-dev-env-tooling >> master
cpcwood Jul 24, 2022
47ab620
Fix deployment
cpcwood Aug 3, 2022
f1c6380
Remove gem cache from base dockerfile
cpcwood Jul 24, 2022
563acb8
Update tasks and entrypoint
cpcwood Jul 24, 2022
f07615b
Update unlocked gems
cpcwood Jul 24, 2022
d2e238c
Update to rails 7
cpcwood Jul 26, 2022
799d59d
Add turbo, update contact messages
cpcwood Jul 27, 2022
fa3aa7c
Remove redundant code in messages controller
cpcwood Jul 27, 2022
b88a781
Update gemfile lock
cpcwood Jul 27, 2022
b07da05
Put admin abouts form into turboframe
cpcwood Jul 27, 2022
78a6306
Put admin site settings edit into turboframe
cpcwood Jul 27, 2022
b9c3531
fix form with turbostream redirect
cpcwood Jul 28, 2022
7e987ab
Add doc
cpcwood Jul 28, 2022
b690a33
Fix dev env permissions on macOS
cpcwood Jul 30, 2022
c885f76
Fix migrations
cpcwood Jul 30, 2022
4d639dd
Update gallery image forms
cpcwood Aug 3, 2022
6bf1b17
Update admin posts with turboframes
cpcwood Aug 5, 2022
c0a4218
Add turboframe to projects
cpcwood Aug 5, 2022
296f667
Fix file uploads
cpcwood Aug 5, 2022
858a36b
Remove debugging
cpcwood Aug 5, 2022
82ff590
Update gems, fix specs
cpcwood Aug 5, 2022
a8f9742
Fix specs
cpcwood Aug 5, 2022
f541f34
rubocop
cpcwood Aug 5, 2022
28fcb97
Fix specs
cpcwood Aug 9, 2022
473fc4a
CircleCI automerge update-deps >> master
cpcwood Aug 9, 2022
bed00a3
update dockerfile
cpcwood Aug 9, 2022
1d03fb4
Update deps and tasks file format
cpcwood Sep 12, 2022
d7e2a49
add post visibility
cpcwood Sep 12, 2022
d486ef1
Update README.md
cpcwood Sep 12, 2022
deb6463
Update jest and transformer
cpcwood Sep 12, 2022
47bcbc5
CircleCI automerge add-temp-blog-posts >> master
cpcwood Sep 12, 2022
b14af29
remove GA, add ahoy
cpcwood Sep 14, 2022
ae24ea3
lint
cpcwood Sep 14, 2022
7668951
CircleCI automerge remove-ga >> master
cpcwood Sep 14, 2022
eba3692
fix dockerfile dependencies
cpcwood Sep 14, 2022
7e40bdb
Update cache control
cpcwood Sep 14, 2022
1f66329
swap fonts while loading
cpcwood Sep 14, 2022
4c430e1
Make scroll events passive
cpcwood Sep 14, 2022
8d7b118
Update footer color contrast
cpcwood Sep 14, 2022
728c6e2
Add backdrop to gallery
cpcwood Sep 14, 2022
5f13427
Add CSP policy
cpcwood Sep 14, 2022
a5a0dd3
CSP
cpcwood Sep 14, 2022
a1721b1
Fix CSP
cpcwood Sep 14, 2022
52e76a6
fix CSP s3
cpcwood Sep 14, 2022
22b7f4c
fix CSP s3
cpcwood Sep 14, 2022
f964d15
Fix CSP envs
cpcwood Sep 15, 2022
d2af95a
Update content_security_policy.rb
cpcwood Sep 15, 2022
88ce149
Update README.md
cpcwood Sep 16, 2022
4564d65
remove turbolinks
cpcwood Sep 17, 2022
fa2219e
Fix prod deps
cpcwood Sep 17, 2022
5bdcee5
rework header scroll
cpcwood Sep 17, 2022
a75ee32
fix csp recaptcha
cpcwood Sep 18, 2022
168a848
fix csp recaptcha
cpcwood Sep 18, 2022
8e8d2c8
Fix CSP recaptcha
cpcwood Sep 18, 2022
e4fb19c
Fix CSP recaptcha
cpcwood Sep 18, 2022
cff6218
Fix CSP recaptcha
cpcwood Sep 18, 2022
02e8696
Fix touch tile controller not preventing touch action on mobile
cpcwood Sep 18, 2022
fa1c7fb
Update _typography.scss
cpcwood Sep 23, 2022
94018d3
Update _typography.scss
cpcwood Sep 23, 2022
f527335
Update application.html.erb
cpcwood Sep 23, 2022
2cc4a77
Update show.html.erb
cpcwood Sep 23, 2022
0280b74
Make code snippets title a link
cpcwood Oct 3, 2022
429727d
Bump nokogiri from 1.13.8 to 1.13.9
dependabot[bot] Oct 21, 2022
d1bd28c
CircleCI automerge dependabot/bundler/nokogiri-1.13.9 >> master
cpcwood Oct 21, 2022
197ce23
Bump loader-utils from 1.4.0 to 1.4.1
dependabot[bot] Nov 8, 2022
42ecaf9
CircleCI automerge dependabot/npm_and_yarn/loader-utils-1.4.1 >> master
cpcwood Nov 8, 2022
de1f00b
Bump loader-utils from 1.4.1 to 1.4.2
dependabot[bot] Nov 17, 2022
0e26558
CircleCI automerge dependabot/npm_and_yarn/loader-utils-1.4.2 >> master
cpcwood Nov 17, 2022
243a507
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Dec 5, 2022
e9374d2
CircleCI automerge dependabot/npm_and_yarn/decode-uri-component-0.2.2…
cpcwood Dec 5, 2022
353f8cc
Bump nokogiri from 1.13.9 to 1.13.10
dependabot[bot] Dec 8, 2022
2079c0c
CircleCI automerge dependabot/bundler/nokogiri-1.13.10 >> master
cpcwood Dec 8, 2022
d362ca0
Bump loofah from 2.18.0 to 2.19.1
dependabot[bot] Dec 13, 2022
124c533
CircleCI automerge dependabot/bundler/loofah-2.19.1 >> master
cpcwood Dec 13, 2022
69e2404
Bump rails-html-sanitizer from 1.4.3 to 1.4.4
dependabot[bot] Dec 13, 2022
e35a744
CircleCI automerge dependabot/bundler/rails-html-sanitizer-1.4.4 >> m…
cpcwood Dec 13, 2022
5c5236c
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Jan 8, 2023
5a8e001
CircleCI automerge dependabot/npm_and_yarn/json5-1.0.2 >> master
cpcwood Jan 8, 2023
d1c027e
fix spelling
cpcwood Jan 8, 2023
8b58b59
update js deps
cpcwood Jan 8, 2023
b97819b
lock gem versions
cpcwood Jan 8, 2023
fdf5a61
lock gem versions
cpcwood Jan 8, 2023
bf116ba
update ruby version
cpcwood Jan 8, 2023
2b92e85
update gems
cpcwood Jan 8, 2023
d02cd38
fix deps
cpcwood Jan 8, 2023
2d5d4ca
update node ssl version
cpcwood Jan 8, 2023
9419023
upgrade webpacker gem to shakapacker
cpcwood Jan 9, 2023
91b21bb
fix deps
cpcwood Jan 9, 2023
2020ceb
CircleCI automerge update-deps-2023-01 >> master
cpcwood Jan 9, 2023
72cfdfe
Update webpack max entrypoint size
cpcwood Jan 9, 2023
0a6190d
Update webpack.config.js
cpcwood Jan 9, 2023
546209c
Update dockefile gem cache clean
cpcwood Jan 9, 2023
10473ca
Bump rack from 2.2.4 to 2.2.6.2
dependabot[bot] Jan 19, 2023
1be9ccd
Bump globalid from 1.0.0 to 1.0.1
dependabot[bot] Jan 19, 2023
39652d0
Update CI auto merge
cpcwood Jan 30, 2023
57f8203
test failure
cpcwood Jan 30, 2023
ef8b320
Update circle-ci-auto-merge
cpcwood Jan 30, 2023
b1f2c8a
Update circle-ci-auto-merge
cpcwood Jan 30, 2023
0d9f1fd
Update config.yml
cpcwood Jan 30, 2023
36ee72b
Update circle-ci-auto-merge
cpcwood Jan 30, 2023
c092c1a
Update circle-ci-auto-merge
cpcwood Jan 30, 2023
b96e1b0
CircleCI automerge cpcwood-patch-1 >> master
cpcwood Jan 30, 2023
bca79f6
Merge pull request #143 from cpcwood/dependabot/bundler/rack-2.2.6.2
cpcwood Jan 31, 2023
78b347b
Merge pull request #144 from cpcwood/dependabot/bundler/globalid-1.0.1
cpcwood Jan 31, 2023
6674c18
update gems and ruby
cpcwood Feb 12, 2023
fe53a18
update ci
cpcwood Feb 12, 2023
b0db5b7
update ci
cpcwood Feb 12, 2023
847c18e
update ci
cpcwood Feb 12, 2023
785ebb3
update ruby version in ci
cpcwood Feb 12, 2023
4d250b8
lint
cpcwood Feb 12, 2023
93b4f77
CircleCI automerge update-deps-2023-02 >> master
cpcwood Feb 12, 2023
44b629b
Fix error removing files in base dockerfile
cpcwood Feb 12, 2023
d0cb223
Bump rack from 2.2.6.2 to 2.2.6.3
dependabot[bot] Mar 9, 2023
81f17f0
CircleCI automerge dependabot/bundler/rack-2.2.6.3 >> master
cpcwood Mar 9, 2023
8033018
Bump webpack from 5.75.0 to 5.76.0
dependabot[bot] Mar 15, 2023
d81e403
CircleCI automerge dependabot/npm_and_yarn/webpack-5.76.0 >> master
cpcwood Mar 15, 2023
dbf8f4a
Bump rack from 2.2.6.3 to 2.2.6.4
dependabot[bot] Mar 16, 2023
dee7bfe
CircleCI automerge dependabot/bundler/rack-2.2.6.4 >> master
cpcwood Mar 16, 2023
ae34818
Bump nokogiri from 1.14.1 to 1.14.3
dependabot[bot] Apr 12, 2023
383a307
CircleCI automerge dependabot/bundler/nokogiri-1.14.3 >> master
cpcwood Apr 12, 2023
992a996
Bump sidekiq from 6.5.8 to 7.0.8
dependabot[bot] Apr 24, 2023
289e267
CircleCI automerge dependabot/bundler/sidekiq-7.0.8 >> master
cpcwood Apr 24, 2023
7a27e37
update ruby version
cpcwood Jun 9, 2023
31692d0
update redis
cpcwood Jun 9, 2023
5a2ee4d
Merge pull request #152 from cpcwood/fixes
cpcwood Jun 9, 2023
cf714e7
add base iac configuration
cpcwood Jun 27, 2023
041f3ec
Bump stylelint from 14.16.1 to 15.10.1
dependabot[bot] Jul 7, 2023
21f91f4
CircleCI automerge dependabot/npm_and_yarn/stylelint-15.10.1 >> master
cpcwood Jul 7, 2023
be7ed99
Bump tough-cookie from 4.1.2 to 4.1.3
dependabot[bot] Jul 7, 2023
b21a0ae
CircleCI automerge dependabot/npm_and_yarn/tough-cookie-4.1.3 >> master
cpcwood Jul 7, 2023
9eb397c
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Jul 11, 2023
db01704
CircleCI automerge dependabot/npm_and_yarn/semver-5.7.2 >> master
cpcwood Jul 11, 2023
03ef841
update base image
cpcwood Jul 11, 2023
d8a419c
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 18, 2023
9d4b8d2
CircleCI automerge dependabot/npm_and_yarn/word-wrap-1.2.4 >> master
cpcwood Jul 18, 2023
bf96ea5
Update default branch to main
cpcwood Sep 4, 2023
2fedb7b
fix bug where gallery images page renders duplicate image
cpcwood Mar 21, 2024
822e73b
update circleci orbs
cpcwood Mar 21, 2024
708feb8
update deps
cpcwood Mar 22, 2024
7b62b69
add https://googlechromelabs.github.io to webmock whitelist
cpcwood Mar 22, 2024
ee4eb4d
update webmock whitelist to include test webdrivers
cpcwood Mar 22, 2024
71a8af0
rubocop linting
cpcwood Mar 22, 2024
e1005e3
update ruby deps
cpcwood Mar 22, 2024
622c3fa
update nodejs
cpcwood Mar 22, 2024
8664366
update nodejs
cpcwood Mar 22, 2024
1025100
fix nav menu on ios
cpcwood Apr 2, 2024
b54f4b1
update order of admin gallery images
cpcwood Apr 3, 2024
5801b5d
Add titles to footer links
cpcwood Apr 5, 2024
d1dc661
refactor about and contact pages
cpcwood Apr 5, 2024
0917663
ensure uploaded image names are removed
cpcwood Apr 21, 2024
ba1f59e
Bump actionpack from 7.1.3.2 to 7.1.3.4
dependabot[bot] Jun 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
169 changes: 169 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
version: 2.1

orbs:
ruby: circleci/[email protected]
node: circleci/[email protected]
docker: circleci/[email protected]
kubernetes: circleci/[email protected]
browser-tools: circleci/[email protected]

workflows:
version: 2
test_build_deploy:
jobs:
- test
- build:
requires:
- test
filters:
branches:
only: main
- deploy:
requires:
- test
- build
filters:
branches:
only: main

jobs:
test:
docker:
- image: cimg/ruby:3.2.3-browsers
- image: cimg/postgres:13.7
environment:
POSTGRES_USER: cpcwood-circleci
POSTGRES_PASSWORD: "test"
POSTGRES_DB: home_server_test
environment:
BUNDLE_JOBS: "3"
BUNDLE_RETRY: "3"
PGHOST: 127.0.0.1
PGUSER: cpcwood-circleci
PGPASSWORD: "test"
DB_NAME_TEST: home_server_test
RAILS_ENV: test
steps:
- checkout
- browser-tools/install-browser-tools
- ruby/install-deps:
include-branch-in-cache-key: false
- node/install-packages:
pkg-manager: yarn
include-branch-in-cache-key: false
- run:
name: 'Wait for DB'
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run:
name: 'Database setup'
command: bundle exec rails db:schema:load --trace
- ruby/rspec-test
- run:
name: 'Rubocop linter'
command: bundle exec rubocop -a
- run:
name: 'JavaScript testing'
command: yarn test
- run:
name: 'JavaScript linting'
command: yarn lint
- run:
name: 'Automerge PR'
command: |
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
echo 'Not in pull request, skipping automerge'
exit 0
fi
if ./scripts/circle-ci/circle-ci-auto-merge ; then
echo 'Merge successful'
else
echo 'Merge failed'
exit 1
fi
build:
docker:
- image: docker
steps:
- checkout
- setup_remote_docker:
version: 20.10.6
- run:
name: 'Docker Login'
command: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin >/dev/null 2>&1
- run:
name: 'Pull previous images for cache'
command: |
docker pull "$DOCKER_USERNAME/home-server-base" || true
docker pull "$DOCKER_USERNAME/home-server-app" || true
docker pull "$DOCKER_USERNAME/home-server-worker-dependencies" || true
docker pull "$DOCKER_USERNAME/home-server-worker" || true
- run:
name: 'Build home-server-base image'
command: |
docker build \
--cache-from "$DOCKER_USERNAME/home-server-base" \
-t "$DOCKER_USERNAME/home-server-base:$(echo $CIRCLE_SHA1 | head -c8)" \
-t $DOCKER_USERNAME/home-server-base:latest \
--build-arg grecaptcha_site_key=$GRECAPTCHA_SITE_KEY \
--build-arg MAX_MIND_LICENSE=$MAX_MIND_LICENSE \
-f ./.docker/dockerfiles/base.Dockerfile \
.
- run:
name: 'Build home-server-app image'
command: |
docker build \
--cache-from "$DOCKER_USERNAME/home-server-app" \
-t "$DOCKER_USERNAME/home-server-app:$(echo $CIRCLE_SHA1 | head -c8)" \
-t $DOCKER_USERNAME/home-server-app:latest \
-f ./.docker/dockerfiles/Dockerfile \
.
- run:
name: 'Build home-server-worker-dependencies image'
command: |
docker build \
--cache-from "$DOCKER_USERNAME/home-server-worker-dependencies" \
-t "$DOCKER_USERNAME/home-server-worker-dependencies:$(echo $CIRCLE_SHA1 | head -c8)" \
-t $DOCKER_USERNAME/home-server-worker-dependencies:latest \
-f ./.docker/dockerfiles/worker-dependencies.Dockerfile \
.
- run:
name: 'Build home-server-worker image'
command: |
docker build \
--cache-from "$DOCKER_USERNAME/home-server-worker" \
-t "$DOCKER_USERNAME/home-server-worker:$(echo $CIRCLE_SHA1 | head -c8)" \
-t $DOCKER_USERNAME/home-server-worker:latest \
-f ./.docker/dockerfiles/worker.Dockerfile \
.
- run:
name: 'Publish images'
command: |
docker push --all-tags "$DOCKER_USERNAME/home-server-base"
docker push --all-tags "$DOCKER_USERNAME/home-server-app"
docker push --all-tags "$DOCKER_USERNAME/home-server-worker-dependencies"
docker push --all-tags "$DOCKER_USERNAME/home-server-worker"
deploy:
docker:
- image: cimg/base:stable
steps:
- checkout
- kubernetes/install-kubectl
- run:
name: 'Update config files in ./kube with current container version'
command: find ./.kube/ -type f | xargs sed -i "s/CONTAINER_VERSION/$(echo $CIRCLE_SHA1 | head -c8)/g"
- run:
name: 'Creating cluster certificate from ENV'
command: echo "$KUBERNETES_CLUSTER_CERTIFICATE" | base64 --decode > cert.crt
- run:
name: 'Apply Kubernetes config to server'
command: |
kubectl --kubeconfig=/dev/null \
--certificate-authority=cert.crt \
--server=$KUBERNETES_SERVER \
--token=$KUBERNETES_SERVICE_ACC_TOKEN \
apply -Rf ./.kube/app/
- run:
name: 'Remove cluster certificate artifact'
command: rm -f cert.crt
when: always
Loading