From e82cb7f2a3d94505b720541d9ec2a6e1fffc08bd Mon Sep 17 00:00:00 2001 From: Mitchell Henke Date: Tue, 30 Jul 2024 17:07:34 -0500 Subject: [PATCH] Use ECR for Redis and Postgres images changelog: Internal, Continuous Integration, Use ECR for Redis and Postgres images --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0c19cc59aa..584d965ed03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -226,7 +226,7 @@ migrate: POSTGRES_HOST_AUTH_METHOD: trust RAILS_ENV: test services: - - name: postgres:13.9 + - name: public.ecr.aws/docker/library/postgres:13.9 alias: db-postgres command: ['--fsync=false', '--synchronous_commit=false', '--full_page_writes=false'] script: @@ -258,10 +258,10 @@ specs: POSTGRES_HOST_AUTH_METHOD: trust RAILS_ENV: test services: - - name: postgres:13.9 + - name: public.ecr.aws/docker/library/postgres:13.9 alias: db-postgres command: ['--fsync=false', '--synchronous_commit=false', '--full_page_writes=false'] - - name: redis:7.0 + - name: public.ecr.aws/docker/library/redis:7.0 alias: db-redis artifacts: expire_in: 31d @@ -288,7 +288,7 @@ specs: - cp -a keys.example keys - cp -a certs.example certs - cp pwned_passwords/pwned_passwords.txt.sample pwned_passwords/pwned_passwords.txt - - "echo -e \"test:\n redis_url: 'redis://redis:6379/0'\n redis_throttle_url: 'redis://redis:6379/1'\" > config/application.yml" + - "echo -e \"test:\n redis_url: 'redis://db-redis:6379/0'\n redis_throttle_url: 'redis://db-redis:6379/1'\" > config/application.yml" - bundle exec rake db:create db:migrate --trace - bundle exec rake db:seed - bundle exec rake knapsack:rspec["--format documentation --format RspecJunitFormatter --out rspec.xml --format json --out rspec_json/${CI_NODE_INDEX}.json"]