Add reviewed container release workflow
pull-request / validate (pull_request) Failing after 19s

This commit is contained in:
2026-09-18 15:51:45 +02:00
parent 84f064abd8
commit e1b2188495
4 changed files with 146 additions and 5 deletions
+37
View File
@@ -0,0 +1,37 @@
name: pull-request
on:
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: elprice
POSTGRES_USER: elprice
POSTGRES_PASSWORD: elprice
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U elprice -d elprice"
--health-interval 2s
--health-timeout 5s
--health-retries 30
env:
TARGET_HOST: localhost
TARGET_PORT: "5432"
TARGET_DB: elprice
TARGET_USER: elprice
TARGET_PASSWORD: elprice
steps:
- uses: actions/checkout@v4
- name: Test
run: clojure -M:test
- name: Build production image
run: docker build --platform linux/amd64 -t elprice:pr-check .