Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add back RabbitMQ-based worker #1513

Merged
merged 14 commits into from
Oct 7, 2024
Merged
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
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
.vscode
ci
target/
Dockerfile
fly.toml
Dockerfile.*
docs/
.env
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copy this file to .env
# ```bash
# cp .env.example
# cp .env.example .env
# ```
#
# Then tweak the values to match your desired config.

RUST_LOG=reacher=info
SQLX_OFFLINE=1
SQLX_OFFLINE=true
RCH_WEBDRIVER_ADDR=http://localhost:9515
3 changes: 2 additions & 1 deletion .github/workflows/deploy_backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tag
name: deploy_backend

on:
push:
Expand All @@ -19,6 +19,7 @@ jobs:
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reacherhq/backend
dockerfile: docker/Dockerfile.backend
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.vars.outputs.GITHUB_TAG }},beta"
6 changes: 3 additions & 3 deletions .github/workflows/deploy_cli.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: deploy_cli

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
- "cli/v*"

name: deploy_cli
env:
# TODO: Rename to your binary
BIN: check_if_email_exists
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/deploy_worker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: deploy_worker

on:
push:
tags:
- "worker/v*.*.*"

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::${GITHUB_REF:17} # Remove /refs/head/worker/
- 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 }},beta"
1 change: 1 addition & 0 deletions .github/workflows/pr_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
# - x86_64-apple-ios

windows:
if: false # Disable Windows tests for now, because Reacher Worker is not supported on Windows
runs-on: windows-latest
needs: install-cross
steps:
Expand Down

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

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

Loading
Loading