.circleci/config.yml in postgres-vacuum-monitor-0.13.1 vs .circleci/config.yml in postgres-vacuum-monitor-0.14.0
- old
+ new
@@ -1,26 +1,33 @@
+# YAML Anchors
+aws-auth: &aws-auth
+ aws_auth:
+ aws_access_key_id: $ECR_AWS_ACCESS_KEY_ID
+ aws_secret_access_key: $ECR_AWS_SECRET_ACCESS_KEY
+
version: 2.1
jobs:
lint:
docker:
- - image: salsify/ruby_ci:2.7.7
+ - image: $SALSIFY_ECR_REPO/ruby_ci:3.0.6
+ <<: *aws-auth
working_directory: ~/postgres-vacuum-monitor
steps:
- checkout
- restore_cache:
keys:
- - v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
- - v1-gems-ruby-2.7.7-
+ - v1-gems-ruby-3.0.6-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
+ - v1-gems-ruby-3.0.6-
- run:
name: Install Gems
command: |
if ! bundle check --path=vendor/bundle; then
bundle install --path=vendor/bundle --jobs=4 --retry=3
bundle clean
fi
- save_cache:
- key: v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
+ key: v1-gems-ruby-3.0.6-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
paths:
- "vendor/bundle"
- "gemfiles/vendor/bundle"
- run:
name: Run Rubocop
@@ -32,11 +39,12 @@
ruby_version:
type: string
postgres_version:
type: string
docker:
- - image: salsify/ruby_ci:<< parameters.ruby_version >>
+ - image: $SALSIFY_ECR_REPO/ruby_ci:<< parameters.ruby_version >>
+ <<: *aws-auth
- image: cimg/postgres:<< parameters.postgres_version >>
environment:
POSTGRES_USER: "circleci"
POSTGRES_DB: "circle_test"
POSTGRES_HOST_AUTH_METHOD: "trust"
@@ -79,21 +87,21 @@
- store_test_results:
path: "test-results"
workflows:
build:
jobs:
- - lint
+ - lint:
+ context: Salsify
- test:
+ context: Salsify
matrix:
parameters:
gemfile:
- - "gemfiles/activerecord_6_0.gemfile"
- "gemfiles/activerecord_6_1.gemfile"
- "gemfiles/activerecord_7_0.gemfile"
ruby_version:
- - "2.7.7"
- - "3.0.5"
- - "3.1.3"
- - "3.2.0"
+ - "3.0.6"
+ - "3.1.4"
+ - "3.2.2"
postgres_version:
- "12.9"
- "14.7"