fix(cloud): accept null model abilities (#2377) #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: 178b1634c104e635c706e1fb4ca37cb3de073cf9 | |
| 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 |