Skip to content

Commit

Permalink
feat: Add back RabbitMQ-based worker (#1513)
Browse files Browse the repository at this point in the history
* Make docker work

* fix dockers

* fix

* use examples

* remove env

* env

* Make it work e2e

* almost work

* works

* try

* try

* use --bin

* typo

* skip windows
  • Loading branch information
amaury1093 authored Oct 7, 2024
1 parent 41ad9e6 commit de75ece
Show file tree
Hide file tree
Showing 29 changed files with 2,063 additions and 20 deletions.
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

0 comments on commit de75ece

Please sign in to comment.