Skip to content

Commit

Permalink
Add NATS testing image
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Jul 22, 2024
1 parent 28ccf6b commit d5da31a
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-publish-test-nats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Build & Publish Test NATS

on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 1,15 * *" # Every 2 weeks
push:
branches:
- main
paths:
- .github/workflows/build-and-publish-test-nats.yml
- .github/workflows/internal-build-and-publish.yml
- 'test-nats/**'
workflow_dispatch:

jobs:
build-and-publish:
uses: ./.github/workflows/internal-build-and-publish.yml
with:
image: test-nats
version: latest
1 change: 1 addition & 0 deletions .github/workflows/delete-old-untagged-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- nuxt-base
- php-base
- web-base
- test-nats
- test-postgis
steps:
- uses: actions/delete-package-versions@v5
Expand Down
10 changes: 10 additions & 0 deletions test-nats/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# hadolint ignore=DL3007
FROM nats:alpine AS final

# Start server
CMD [ \
"nats-server", \
"--config=/etc/nats/nats-server.conf", \
"--server_name=test-server", \
"--jetstream" \
]
5 changes: 5 additions & 0 deletions test-nats/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nats-test

⚠️ This docker is only to be used in pipelines ⚠️

This variant based on `nats:alpine` ensures we can use the `--jetstream` flag in GA service containers.

0 comments on commit d5da31a

Please sign in to comment.