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:
|
migrate:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
build:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
environment:
|
environment:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@@ -57,6 +60,10 @@ jobs:
|
|||||||
if: ${{ inputs.migrate == 'true' }}
|
if: ${{ inputs.migrate == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
docker run --env-file=.env --pull=always --rm cr.yandex/$CR_REGISTRY/$CR_REPO:$TAG alembic upgrade head
|
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
|
- name: Deploy
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://${{ inputs.host }}:2376
|
DOCKER_HOST: tcp://${{ inputs.host }}:2376
|
||||||
|
|||||||
Reference in New Issue
Block a user