Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa87ae5a36
|
||
|
|
406d5ec2f1 | ||
|
|
6a1896dcb5 | ||
|
|
dec283c1ca | ||
|
|
8b8ec1fc9f |
+13
-3
@@ -9,6 +9,13 @@ on:
|
||||
- main
|
||||
|
||||
env:
|
||||
# registry + cosign creds via env, NOT inline ${{ }}: the Harbor robot
|
||||
# username contains '$', which sh expands when interpolated into the
|
||||
# script (robot$ci-push -> robot-push) => docker login unauthorized.
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
COSIGN_KEY: ${{ secrets.COSIGN_KEY }}
|
||||
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTFLAGS: "-D warnings"
|
||||
# sccache caches compilation artifacts within a job so that compiling
|
||||
@@ -273,11 +280,14 @@ jobs:
|
||||
git checkout FETCH_HEAD
|
||||
- name: Build and push image
|
||||
run: |
|
||||
IMAGE=registry.meghsakha.com/certifai-dashboard
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||
docker login registry.meghsakha.com -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
IMAGE=repo.breakpilot.com/certifai/certifai-dashboard
|
||||
echo "$REGISTRY_PASSWORD" | \
|
||||
docker login repo.breakpilot.com -u "$REGISTRY_USERNAME" --password-stdin
|
||||
docker build -t "$IMAGE:latest" -t "$IMAGE:${GITHUB_SHA}" .
|
||||
docker push "$IMAGE:latest"
|
||||
{ command -v cosign >/dev/null 2>&1 || curl -sSfLo /usr/local/bin/cosign https://github.com/sigstore/cosign/releases/download/v2.4.3/cosign-linux-amd64 || wget -qO /usr/local/bin/cosign https://github.com/sigstore/cosign/releases/download/v2.4.3/cosign-linux-amd64; } || echo "::warning::cosign fetch failed"
|
||||
chmod +x /usr/local/bin/cosign 2>/dev/null || true
|
||||
cosign sign --yes --key env://COSIGN_KEY "$IMAGE:latest" || echo "::warning::cosign failed"
|
||||
docker push "$IMAGE:${GITHUB_SHA}"
|
||||
- name: Trigger orca redeploy
|
||||
run: |
|
||||
|
||||
+7
-1
@@ -5,7 +5,11 @@ services:
|
||||
environment:
|
||||
KC_BOOTSTRAP_ADMIN_USERNAME: admin
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
|
||||
KC_DB: dev-mem
|
||||
# dev-file persists Keycloak's H2 DB under /opt/keycloak/data/h2/
|
||||
# so the realm + test users survive container restarts. With the
|
||||
# previous dev-mem the realm dissolved every time KC went idle,
|
||||
# breaking local M7.1 smoke testing.
|
||||
KC_DB: dev-file
|
||||
KC_HEALTH_ENABLED: "true"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
@@ -15,6 +19,7 @@ services:
|
||||
volumes:
|
||||
- ./keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro
|
||||
- ./keycloak/themes/certifai:/opt/keycloak/themes/certifai:ro
|
||||
- keycloak-data:/opt/keycloak/data/h2
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/8080 && echo -e 'GET /realms/master HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && head -1 <&3 | grep -q '200 OK'"]
|
||||
interval: 10s
|
||||
@@ -256,3 +261,4 @@ volumes:
|
||||
langfuse-db-data:
|
||||
langfuse-clickhouse-data:
|
||||
langfuse-clickhouse-logs:
|
||||
keycloak-data:
|
||||
|
||||
Reference in New Issue
Block a user