diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6ddf647..6a35983 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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