diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e95f80f..a951adf 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -55,9 +55,9 @@ jobs: source .env cat .env - name: Migrate - if: ${{ inputs.migrate == true }} + if: ${{ inputs.migrate }} run: | - docker run -it --rm cr.yandex/$CR_REGISTRY/$CR_REPO:$TAG alembic upgrade head --env-file=.env + docker run --pull=always -it --rm cr.yandex/$CR_REGISTRY/$CR_REPO:$TAG alembic upgrade head --env-file=.env - name: Deploy env: DOCKER_HOST: tcp://${{ inputs.host }}:2376