Fix broken circleci deploy due to extra space in tag (#1502)
* Fix broken circleci deploy due to extra space in tag * Minor formatting nits in bash sections
This commit is contained in:
Родитель
1ace0fe2b7
Коммит
ee6b71310e
|
@ -144,8 +144,8 @@ jobs:
|
|||
name: Early return if this build is from a forked PR
|
||||
command: |
|
||||
if [ -n "$CIRCLE_PR_NUMBER" ]; then
|
||||
echo "Cannot pass creds to forked PRs,
|
||||
so marking this step successful"
|
||||
echo "Cannot pass creds to forked PRs,
|
||||
so marking this step successful"
|
||||
circleci step halt
|
||||
fi
|
||||
- *build
|
||||
|
@ -157,11 +157,11 @@ jobs:
|
|||
- run:
|
||||
name: Build and deploy docs
|
||||
command: |
|
||||
PATH="venv/bin:$PATH" script/generate_docs \
|
||||
PATH="venv/bin:$PATH" script/generate_docs \
|
||||
--output_dir=generated_docs/
|
||||
cd generated_docs/
|
||||
mkdocs gh-deploy -m "[ci skip] Deployed
|
||||
{sha} with MkDocs version: {version}"
|
||||
mkdocs gh-deploy \
|
||||
-m "[ci skip] Deployed {sha} with MkDocs version: {version}"
|
||||
deploy:
|
||||
parameters:
|
||||
image:
|
||||
|
@ -177,8 +177,7 @@ jobs:
|
|||
name: Determine docker image name
|
||||
command:
|
||||
# yamllint disable-line rule:line-length
|
||||
echo 'IMAGE="${CIRCLE_PROJECT_USERNAME+$CIRCLE_PROJECT_USERNAME/} ${CIRCLE_PROJECT_REPONAME:-bigquery-etl}:${CIRCLE_TAG:-latest}"' > $BASH_ENV
|
||||
|
||||
echo 'IMAGE="${CIRCLE_PROJECT_USERNAME+$CIRCLE_PROJECT_USERNAME/}${CIRCLE_PROJECT_REPONAME:-bigquery-etl}:${CIRCLE_TAG:-latest}"' > $BASH_ENV
|
||||
- run:
|
||||
name: Build docker image
|
||||
command: docker build . --pull --tag "$IMAGE"
|
||||
|
|
Загрузка…
Ссылка в новой задаче