Skip to content

Commit

Permalink
feat: Add AWS SQS support (#1554)
Browse files Browse the repository at this point in the history
* add sqs

only vuild sqs

first version of terraform

move

add docs

typechange

works

wip runtime

Use arm64

fix dockerfile

use musl

add dlq

works

first time working

try again

less memory

clean up

add env vars support

send webhook

fix build

fix http

fix terraform

* format better

* add webdriver config

* ok

* fix webdriver

* beta

* add docker command
  • Loading branch information
amaury1093 authored Jan 6, 2025
1 parent 14a6759 commit 92be54e
Show file tree
Hide file tree
Showing 23 changed files with 769 additions and 73 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Config for direnv
# https://direnv.net/
dotenv
39 changes: 35 additions & 4 deletions .github/workflows/deploy_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,51 @@ on:
- "v*.*.*"

jobs:
docker-publish:
get-tag:
runs-on: ubuntu-latest
outputs:
GITHUB_TAG: ${{ steps.vars.outputs.GITHUB_TAG }}
steps:
- uses: actions/checkout@master
- name: Set GITHUB_TAG arg
id: vars
run: echo ::set-output name=GITHUB_TAG::${GITHUB_REF:10} # Remove /refs/head/

docker-publish:
runs-on: ubuntu-latest
needs: get-tag
steps:
- uses: actions/checkout@master
- name: Print version
run: echo "Publishing reacherhq/backend:${{ steps.vars.outputs.GITHUB_TAG }}"
- name: Publish to Registry
run: echo "Publishing reacherhq/backend:${{ needs.get-tag.outputs.GITHUB_TAG }}"
- name: Publish to Docker Hub
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reacherhq/backend
dockerfile: backend/Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "${{ steps.vars.outputs.GITHUB_TAG }},beta"
tags: "${{ needs.get-tag.outputs.GITHUB_TAG }},beta"

ecr-publish:
runs-on: ubuntu-latest
needs: get-tag
steps:
- uses: actions/checkout@master
- name: Print version
run: echo "Publishing reacherhq/backend:${{ needs.get-tag.outputs.GITHUB_TAG }}"
- name: Login to ECR
id: ecr
uses: elgohr/ecr-login-action@v3
with:
access_key: ${{ secrets.AWS_ACCESS_KEY }}
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region: ${{ secrets.AWS_REGION }}
- name: Publish to AWS ECR
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: reacherhq/sqs
username: ${{ steps.ecr.outputs.username }}
password: ${{ steps.ecr.outputs.password }}
registry: ${{ steps.ecr.outputs.registry }}
tags: "${{ needs.get-tag.outputs.GITHUB_TAG }},beta"
181 changes: 175 additions & 6 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[workspace]
members = ["backend", "cli", "core"]
members = ["backend", "cli", "core", "sqs"]
3 changes: 2 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "reacher_backend"
version = "0.10.0"
version = "0.10.2"
edition = "2018"
license = "AGPL-3.0"
publish = false
Expand All @@ -13,6 +13,7 @@ config = "0.14"
csv = "1.3.0"
dotenv = "0.15.0"
futures = { version = "0.3.30" }
http = "1.2.0"
lapin = { version = "2.3.1" }
tokio-executor-trait = { version = "2.1.1" }
tokio-reactor-trait = { version = "1.1.0" }
Expand Down
Loading

0 comments on commit 92be54e

Please sign in to comment.