Skip to content

fix GH actions file #148

fix GH actions file

fix GH actions file #148

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push the Docker image
uses: docker/build-push-action@v2
with:
push: true
file: Dockerfile.dev
tags: isee4xai/cockpit:dev
build-args: |
UMI_APP_API_URL="https://api-dev.isee4xai.com/api"
UMI_APP_ONTOAPI_URL="https://api-onto-dev.isee4xai.com/api"
UMI_APP_WS_URL="wss://dialog-dev.isee4xai.com/ws/"
UMI_APP_EDITOR_URL="https://editor-dev.isee4xai.com/"
- name: Build and push the Docker image (with LLM-enabled Dialog Manager)
uses: docker/build-push-action@v2
with:
push: true
file: Dockerfile.dev
tags: isee4xai/cockpit-llm:dev
build-args: |
UMI_APP_API_URL="https://api-dev.isee4xai.com/api"
UMI_APP_ONTOAPI_URL="https://api-onto-dev.isee4xai.com/api"
UMI_APP_WS_URL="wss://dialog-llm-dev.isee4xai.com/ws/"
UMI_APP_EDITOR_URL="https://editor-dev.isee4xai.com/"
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy on dev platform
uses: distributhor/workflow-webhook@v2
with:
webhook_url: ${{ secrets.WEBHOOK_URL_DEV }}
webhook_secret: ${{ secrets.WEBHOOK_TOKEN_DEV }}
data: '{"DOCKER_SERVICE":"cockpit cockpit-llm"}'
webhook_type: 'json-extended'