Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release-registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release registry
on:
push:
paths: ['applications/release-registry/**', '.github/workflows/release-registry.yml']
pull_request:
paths: ['applications/release-registry/**', '.github/workflows/release-registry.yml']
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: applications/release-registry
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install 1.99.0 --profile minimal --component rustfmt
- run: cargo fmt --check
- run: cargo test --locked
- run: cargo build --locked
11 changes: 11 additions & 0 deletions applications/release-registry/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PGHOST=YOUR_DIRECT_CLOUD_POSTGRES_HOSTNAME
PGPORT=5432
PGDATABASE=postgres
PGUSER=registry_app
PGPASSWORD=YOUR_RUNTIME_PASSWORD
PGSSLROOTCERT=/absolute/path/to/postgres-ca.pem
PORT=3000
PROJECT_TOKENS='{"00000000-0000-4000-8000-000000000001":"YOUR_RANDOM_TOKEN_AT_LEAST_32_CHARACTERS","00000000-0000-4000-8000-000000000002":"ANOTHER_RANDOM_TOKEN_AT_LEAST_32_CHARACTERS"}'
# Integration tests only: dedicated service, no production data.
# TEST_MIGRATOR_PASSWORD=YOUR_MIGRATOR_PASSWORD
# TEST_WRONG_CA=/absolute/path/to/unrelated-ca.pem
4 changes: 4 additions & 0 deletions applications/release-registry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target/
.deployment/
.env
*.log
Loading
Loading