Skip to content

Commit

Permalink
more setup
Browse files Browse the repository at this point in the history
  • Loading branch information
croyfish committed Dec 2, 2024
1 parent 98c76eb commit 60a9d74
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
# ports:
# - 3306:3306

env:
RAILS_ENV: test
IMAGE_FILESTORE_DATABASE_NAME: image_filestore_test
AMI_FILESTORE_DATABASE_NAME: ami_filestore_test
IMAGE_FILESTORE_DATABASE_USER: root
AMI_FILESTORE_DATABASE_USER: root
# DATABASE_USERNAME: root
#DATABASE_PASSWORD: "" # Empty password
#DATABASE_HOST: 127.0.0.1
# env:
# RAILS_ENV: test
# IMAGE_FILESTORE_DATABASE_NAME: image_filestore_test
# AMI_FILESTORE_DATABASE_NAME: ami_filestore_test
# IMAGE_FILESTORE_DATABASE_USER: root
# AMI_FILESTORE_DATABASE_USER: root
# # DATABASE_USERNAME: root
# #DATABASE_PASSWORD: "" # Empty password
# #DATABASE_HOST: 127.0.0.1

steps:
- name: Check out code
Expand All @@ -69,17 +69,17 @@ jobs:
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.3
bundler-cache: true

- name: Update RubyGems and install Bundler
run: |
gem update --system '3.3.22'
gem install bundler -v '2.5.18'
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.3.3
# bundler-cache: true
#
# - name: Update RubyGems and install Bundler
# run: |
# gem update --system '3.3.22'
# gem install bundler -v '2.5.18'
#
# # - name: Set up PostgreSQL
# # run: |
# # docker exec ${{ job.services.postgres.id }} bash -c "psql -U postgres -c 'ALTER SYSTEM SET shared_buffers TO 65536;'"
Expand Down Expand Up @@ -120,9 +120,14 @@ jobs:
echo 'DATABASE_USER_NAME=postgres' >> .env
echo 'DATABASE_PASSWORD=mypassword' >> .env
echo 'DATABASE_HOST=postgres' >> .env
echo 'IMAGE_FILESTORE_DATABASE_NAME=image_filestore_test' >> .env
echo 'AMI_FILESTORE_DATABASE_NAME=ami_filestore_test' >> .env
echo 'IMAGE_FILESTORE_DATABASE_USER=root' >> .env
echo 'AMI_FILESTORE_DATABASE_USER=root' >> .env
- name: Start App
run: |
docker-compose build
docker-compose up -d
- name: Show Database Logs
Expand Down

0 comments on commit 60a9d74

Please sign in to comment.