Skip to content

Commit

Permalink
0.16.2: Minimal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
flavienbwk committed Sep 12, 2024
1 parent 17d3d57 commit 597078d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 52 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Build and Push Docker image
name: "Deploy Repochat for this repo"

on:
push:
branches:
- main
- f/pg-backend
paths:
- 'Dockerfile'
- 'package.json'
- main
- beta/*
- f/pg-backend

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:

build-and-push:
if: contains(github.event.head_commit.modified, 'package.json')
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -69,3 +69,31 @@ jobs:
push: true
tags: ${{ steps.meta_latest.outputs.tags }}
labels: ${{ steps.meta_latest.outputs.labels }}

deploy:
runs-on: ubuntu-latest
needs: build-and-push
steps:
- uses: actions/checkout@v2
- uses: ./
name: 'Deploy Repochat'
id: deploy_repochat
with:
dirs_to_scan: "README.md,package.json,Dockerfile,api,action,app"
interface_password: ${{ secrets.INTERFACE_PASSWORD }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
openai_model_type_inference: "gpt-4o-mini"
openai_model_type_embedding : "text-embedding-3-small"
provider_name: 'scaleway'
provider_key_id: ${{ secrets.PROVIDER_KEY_ID }}
provider_key_secret: ${{ secrets.PROVIDER_KEY_SECRET }}
provider_project_id: ${{ secrets.PROVIDER_PROJECT_ID }}
provider_default_region: 'fr-par'
provider_default_zone: 'fr-par-2'
pg_connection_string: ${{ secrets.PG_CONNECTION_STRING }}
min_scale: 0
max_scale: 2

- name: Get repochat domain
run: echo "DOMAIN=${{ steps.deploy_repochat.outputs.domain }}" >> $GITHUB_OUTPUT
id: repochat_domain
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79194,7 +79194,7 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":"
/***/ ((module) => {

"use strict";
module.exports = {"i8":"0.16.1"};
module.exports = {"i8":"0.16.2"};

/***/ })

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gh-action-repochat",
"version": "0.16.1",
"version": "0.16.2",
"type": "commonjs",
"description": "GitHub Action to run RepoChat",
"main": "index.js",
Expand Down

0 comments on commit 597078d

Please sign in to comment.