Skip to content

Commit f0ce3eb

Browse files
committed
Run CI with images corresponding to current branch
1 parent ed03e6e commit f0ce3eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
sed -i 's|host=qwc-postgis|host=localhost|g' ~/.pg_service.conf
2424
sed -i 's|port=5432|port=5439|g' ~/.pg_service.conf
2525
sed -Ei "s|^(\s*POSTGRES_PASSWORD:).*$|\1 'waej7WuoOoth0wor'|" docker-compose-example.yml
26+
if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then
27+
sed -Ei "s|:latest\S+|:latest-${GITHUB_REF:11:4}-lts|g" docker-compose-example.yml
28+
else
29+
sed -Ei "s|:latest\S+|:latest|g" docker-compose-example.yml
30+
fi
2631
docker compose -f docker-compose-example.yml up -d qwc-postgis qwc-config-db-migrate
2732
2833
- name: Setting up Python

0 commit comments

Comments
 (0)