Skip to content

Commit

Permalink
fix files
Browse files Browse the repository at this point in the history
  • Loading branch information
freeziyou committed Jan 31, 2024
1 parent 794d184 commit dbcd564
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 60 deletions.
119 changes: 62 additions & 57 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,62 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
paths:
- '**'
- 'website/**'
workflow_dispatch:

jobs:
build-main-app:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.modified, 'website')) }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push main app Docker image
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile
push: true
tags: connectai/gitmaya:latest

build-website:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.modified, 'website') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push website Docker image
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy
push: true
tags: connectai/gitmaya-proxy:latest
- name: Build and push website Docker image-SaaS
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy.saas
push: true
tags: connectai/gitmaya-proxy:saas
name: Docker Image CI

on:
push:
branches: [ "main" ]
paths:
- '**'
- 'website/**'
workflow_dispatch:

jobs:
build-main-app:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.modified, 'website')) }}
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push main app Docker image
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile
push: true
tags: connectai/gitmaya:latest

build-website:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.modified, 'website') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
with:
submodules: 'true'

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push website Docker image
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy
push: true
tags: connectai/gitmaya-proxy:latest

- name: Build and push website Docker image-SaaS
uses: docker/build-push-action@v2
with:
context: .
file: deploy/Dockerfile.proxy.saas
push: true
tags: connectai/gitmaya-proxy:saas
3 changes: 1 addition & 2 deletions deploy/Dockerfile.proxy.saas
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ RUN corepack enable
COPY ./website /app
WORKDIR /app

RUN pnpm install --frozen-lockfile
RUN pnpm build:saas
RUN pnpm install --frozen-lockfile && pnpm build:saas

FROM jwilder/nginx-proxy:alpine

Expand Down
2 changes: 1 addition & 1 deletion server/utils/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

app.config.setdefault("REDIS_URL", "redis://redis:6379/0")

client = redis.from_url(app.config["REDIS_URL"], decode_responses=True)
client = redis.from_url(app.config["CELERY_BROKER_URL"], decode_responses=True)


class RedisStorage(object):
Expand Down

0 comments on commit dbcd564

Please sign in to comment.