Skip to content

Commit

Permalink
✨ CI: use iem_database container
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Jan 7, 2025
1 parent 636cfb0 commit e9cfd13
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Run IEM Database container
run: |
docker run -d --name iem_database -p 5432:5432 ghcr.io/akrherz/iem_database:test_data
until docker exec iem_database pg_isready -h localhost; do
sleep 6
done
- name: Run Memcached container
run: |
docker run -d --name iem_memcached -p 11211:11211 memcached:1.6.9
- name: Add /etc/hosts entries
run: |
cat .github/workflows/etchosts.txt | sudo tee -a /etc/hosts
Expand All @@ -37,14 +48,6 @@ jobs:
python=${{ env.PYTHON_VERSION }}
environment-name: prod
cache-environment: true

- name: Setup Postgres
run: |
git clone --depth 1 https://github.com/akrherz/iem-database.git database
git clone --depth 1 https://github.com/akrherz/ci_tooling.git .ci_tooling
. .ci_tooling/postgres.sh
cd database; sh bootstrap.sh
python schema_manager.py

- name: Build and Test
run: |
Expand Down

0 comments on commit e9cfd13

Please sign in to comment.