Skip to content

Commit

Permalink
try docker
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 5, 2024
1 parent 42d6441 commit 89173ab
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 76 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy_worker2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: deploy_worker2

on:
pull_request:
branches:
- master

jobs:
docker-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set GITHUB_TAG arg
id: vars
run: echo ::set-output name=GITHUB_TAG::v0.1.0-beta.0
- name: Print version
run: echo "Publishing reacherhq/worker:${{ steps.vars.outputs.GITHUB_TAG }}"
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reacherhq/worker
dockerfile: docker/Dockerfile.worker
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.vars.outputs.GITHUB_TAG }}"
95 changes: 69 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
[workspace]
members = ["backend", "cli", "core", "worker"]
resolver = "2"

[workspace.dependencies]
async-smtp = { version = "0.6.0", features = ["socks5"] }
futures = { version = "0.3.30" }
reqwest = { version = "0.12.5", features = ["json", "rustls-tls"] }
sentry = "0.23"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.7", features = [
"runtime-tokio-native-tls",
"postgres",
"uuid",
"chrono",
"json",
"migrate",
] }
sqlxmq = "0.5"
tokio = { version = "1.35", features = ["macros"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
26 changes: 9 additions & 17 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,17 @@ license = "AGPL-3.0"
publish = false

[dependencies]
async-smtp = "0.6"
async-smtp = { workspace = true }
check-if-email-exists = { path = "../core", features = ["headless", "sentry"] }
csv = "1.3.0"
dotenv = "0.15.0"
openssl = { version = "0.10.64", features = ["vendored"] }
sentry = "0.23"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.7", features = [
"runtime-tokio-native-tls",
"postgres",
"uuid",
"chrono",
"json",
"migrate",
] }
sqlxmq = "0.5"
tokio = { version = "1.35", features = ["macros"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
sentry = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sqlx = { workspace = true }
sqlxmq = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
uuid = "1.10"
warp = "0.3"
10 changes: 3 additions & 7 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,9 @@ check-if-email-exists = { path = "../core", features = ["headless"] }
clap = { version = "3.2", features = ["derive", "env"] }
env_logger = "0.11"
once_cell = "1.19"
openssl = { version = "0.10", features = ["vendored"] }
serde = "1.0"
serde_json = "1.0"

[dependencies.tokio]
version = "1.35.1"
features = ["macros", "net", "io-util", "rt-multi-thread"]
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }

[profile.release]
lto = true
16 changes: 8 additions & 8 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ repository = "https://github.com/reacherhq/check-if-email-exists"
[dependencies]
async-native-tls = { version = "0.4", default-features = false }
async-recursion = "1.0.5"
async-smtp = { version = "0.6.0", features = ["socks5"] }
async-smtp = { workspace = true }
chrono = "0.4.31"
fantoccini = { version = "0.19.3", optional = true }
futures = { version = "0.3.30", optional = true }
futures = { workspace = true, optional = true }
fast-socks5 = "0.9.2"
hickory-proto = "0.24.0"
hickory-resolver = "0.24.0"
Expand All @@ -30,14 +30,14 @@ once_cell = "1.19.0"
pwned = "0.5.0"
rand = { version = "0.8.5", features = ["small_rng"] }
regex = "1.10.2"
reqwest = { version = "0.12.5", features = ["json", "socks"] }
sentry = { version = "0.23", optional = true }
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.124"
tracing = "0.1.40"
reqwest = { workspace = true }
sentry = { workspace = true, optional = true }
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
tokio = { version = "1.35.1" }
tokio = { workspace = true }

[features]
headless = ["fantoccini", "futures"]
28 changes: 10 additions & 18 deletions worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,22 @@ version = "0.1.0"
edition = "2021"

[dependencies]
async-smtp = "0.6"
async-smtp = { workspace = true }
check-if-email-exists = { path = "../core", features = ["headless", "sentry"] }
config = { version = "0.14.0", features = ["toml"] }
futures = { version = "0.3.30" }
futures = { workspace = true }
futures-lite = { version = "2.2.0" }
lapin = { version = "2.3.1" }
openssl = { version = "0.10.64", features = ["vendored"] }
reqwest = { version = "0.12.5", features = ["json"] }
reqwest = { workspace = true }
sentry = "0.23"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sqlx = { version = "0.7", features = [
"runtime-tokio-native-tls",
"postgres",
"uuid",
"chrono",
"json",
"migrate",
] }
sqlxmq = "0.5"
tokio = { version = "1.35", features = ["macros"] }
serde = { workspace = true }
serde_json = { workspace = true }
sqlx = { workspace = true }
sqlxmq = { workspace = true }
tokio = { workspace = true }
tokio-executor-trait = { version = "2.1.1" }
tokio-reactor-trait = { version = "1.1.0" }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
uuid = "1.10"
warp = "0.3"

0 comments on commit 89173ab

Please sign in to comment.