mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-04 10:36:09 +00:00
c08bfc8ced
* feat: report independent instance and workspace identities * test: include workspace in OAuth callback fixture * ci: pin production cloud adapter to Space release * fix: preserve authenticated Workspace telemetry attribution * ci: pin production cloud adapter to final Space release --------- Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: Build and deploy production
|
|
|
|
on:
|
|
push:
|
|
branches: [deploy/prod]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: langbot-production
|
|
cancel-in-progress: false
|
|
|
|
env:
|
|
CORE_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot
|
|
CLOUD_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot-cloud-core
|
|
SPACE_REF: 58253c53933f95d81b035fbe2efedb55b6c1a82b
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: docker/setup-buildx-action@v3
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build exact Core image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
${{ env.CORE_IMAGE }}:prod-${{ github.sha }}
|
|
${{ env.CORE_IMAGE }}:deploy-prod
|
|
cache-from: type=gha,scope=core-prod
|
|
cache-to: type=gha,mode=max,scope=core-prod
|
|
- name: Checkout production Cloud adapter
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: langbot-app/langbot-space
|
|
ref: ${{ env.SPACE_REF }}
|
|
token: ${{ secrets.CLA_PAT }}
|
|
path: .space
|
|
- name: Build exact Cloud Core image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .space
|
|
file: .space/Dockerfile.cloud
|
|
push: true
|
|
build-args: LANGBOT_CORE_IMAGE=${{ env.CORE_IMAGE }}:prod-${{ github.sha }}
|
|
tags: |
|
|
${{ env.CLOUD_IMAGE }}:prod-${{ github.sha }}
|
|
${{ env.CLOUD_IMAGE }}:deploy-prod
|
|
cache-from: type=gha,scope=cloud-core-prod
|
|
cache-to: type=gha,mode=max,scope=cloud-core-prod
|