add build option
This commit is contained in:
7
.github/workflows/deploy.yaml
vendored
7
.github/workflows/deploy.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user