add build option

This commit is contained in:
2025-02-18 15:37:32 +03:00
parent 9ed6ee4e59
commit 624d3371ab

View File

@@ -12,6 +12,9 @@ on:
migrate:
type: boolean
default: false
build:
type: boolean
default: false
environment:
type: string
required: true
@@ -57,6 +60,10 @@ jobs:
if: ${{ inputs.migrate == 'true' }}
run: |
docker run --env-file=.env --pull=always --rm cr.yandex/$CR_REGISTRY/$CR_REPO:$TAG alembic upgrade head
- name: Build
if: ${{ inputs.build == 'true' }}
run: |
docker run --env-file=.env --pull=always --rm cr.yandex/$CR_REGISTRY/$CR_REPO:$TAG alembic upgrade head
- name: Deploy
env:
DOCKER_HOST: tcp://${{ inputs.host }}:2376