mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-15 15:00:58 +00:00
fix(deploy): preserve recovered Cloud adapter pin (#2417)
Co-authored-by: Chan <dadachann@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,7 @@ concurrency:
|
|||||||
env:
|
env:
|
||||||
CORE_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot
|
CORE_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot
|
||||||
CLOUD_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot-cloud-core
|
CLOUD_IMAGE: ${{ secrets.DOCKER_USERNAME }}/langbot-cloud-core
|
||||||
SPACE_REF: 58253c53933f95d81b035fbe2efedb55b6c1a82b
|
SPACE_REF: 1c31172dee7aa912ce807d899018de27ff29054f
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
_REPO_ROOT = Path(__file__).resolve().parents[3]
|
||||||
|
_RECOVERY_SPACE_REF = '1c31172dee7aa912ce807d899018de27ff29054f'
|
||||||
|
|
||||||
|
|
||||||
|
def test_production_build_pins_recovered_cloud_adapter_revision():
|
||||||
|
workflow = (_REPO_ROOT / '.github' / 'workflows' / 'deploy-prod.yml').read_text(encoding='utf-8')
|
||||||
|
|
||||||
|
assert f'SPACE_REF: {_RECOVERY_SPACE_REF}' in workflow
|
||||||
Reference in New Issue
Block a user