-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
175 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,35 @@ | ||
name: Docker build & push | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths-ignore: | ||
- '**.md' | ||
- 'docker-compose.yml' | ||
- 'architecture.drawio' | ||
- 'architecture.drawio.svg' | ||
- '**.png' | ||
push: | ||
branches: | ||
- 'main' | ||
paths-ignore: | ||
- '**.md' | ||
- 'architecture.drawio' | ||
- 'architecture.drawio.svg' | ||
- '**.png' | ||
jobs: | ||
bake: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
# Add support for more platforms with QEMU (optional) | ||
# https://github.com/docker/setup-qemu-action | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Log in to the GitHub Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Build and push | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
"docker-compose.yml" | ||
push: true | ||
bake: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- # Add support for more platforms with QEMU (optional) | ||
# https://github.com/docker/setup-qemu-action | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Log in to the GitHub Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/bake-action@v2 | ||
with: | ||
files: | | ||
"compose.yml" | ||
push: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.19-bullseye as builder | ||
FROM golang:1.22-bullseye as builder | ||
|
||
ENV GO111MODULE=on | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
services: | ||
nats-news-keyword-matcher-go: | ||
image: ghcr.io/heussd/nats-news-keyword-matcher-go:main | ||
build: . | ||
volumes: | ||
- type: bind | ||
source: ./internal/keywords/keywords.txt | ||
target: /keywords.txt | ||
consistency: cached | ||
read_only: true | ||
environment: | ||
- 'KEYWORDS_FILE:/keywords.txt' | ||
- 'NATS_SERVER=nats-server:4222' | ||
- 'FULLTEXTRSS_SERVER=http://fullfeedrss:80' | ||
nats-server: | ||
image: nats:2.10 | ||
ports: | ||
- '4222:4222' # 4222 is for clients. | ||
- '8222:8222' # 8222 is an HTTP management port for information reporting. | ||
- '6222:6222' # 6222 is a routing port for clustering. | ||
command: '--jetstream' | ||
fullfeedrss: | ||
image: 'heussd/fivefilters-full-text-rss:latest' | ||
environment: | ||
# Leave empty to disable admin section | ||
- FTR_ADMIN_PASSWORD= | ||
ports: | ||
- '80:80' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
module github.com/heussd/nats-news-keyword-matcher.go | ||
|
||
go 1.19 | ||
go 1.22 | ||
|
||
toolchain go1.22.2 | ||
|
||
require ( | ||
github.com/dlclark/regexp2 v1.7.0 | ||
github.com/microcosm-cc/bluemonday v1.0.21 | ||
github.com/nats-io/nats.go v1.28.0 | ||
github.com/rs/zerolog v1.29.0 | ||
github.com/dlclark/regexp2 v1.11.0 | ||
github.com/microcosm-cc/bluemonday v1.0.26 | ||
github.com/nats-io/nats.go v1.34.1 | ||
github.com/rs/zerolog v1.32.0 | ||
github.com/stretchr/testify v1.8.1 | ||
) | ||
|
||
require ( | ||
github.com/aymerick/douceur v0.2.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/gorilla/css v1.0.0 // indirect | ||
github.com/klauspost/compress v1.16.7 // indirect | ||
github.com/gorilla/css v1.0.1 // indirect | ||
github.com/klauspost/compress v1.17.8 // indirect | ||
github.com/kr/pretty v0.1.0 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.18 // indirect | ||
github.com/nats-io/nats-server/v2 v2.9.23 // indirect | ||
github.com/nats-io/nkeys v0.4.6 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/nats-io/nkeys v0.4.7 // indirect | ||
github.com/nats-io/nuid v1.0.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/crypto v0.21.0 // indirect | ||
golang.org/x/net v0.23.0 // indirect | ||
golang.org/x/sys v0.18.0 // indirect | ||
google.golang.org/protobuf v1.33.0 // indirect | ||
golang.org/x/crypto v0.22.0 // indirect | ||
golang.org/x/net v0.24.0 // indirect | ||
golang.org/x/sys v0.19.0 // indirect | ||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.