Skip to content

Commit

Permalink
cloudbuild.yaml and Dockerfile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando-az-alpaca committed Dec 19, 2023
1 parent 4c03819 commit 44b4f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ COPY . .

# for the config line below, see https://github.com/python-poetry/poetry/issues/7611#issuecomment-1747836233 (can be dropped with poetry >= 1.7.0)
RUN poetry config installer.max-workers 1
RUN poetry update
RUN poetry install

WORKDIR /app/docs
Expand Down
4 changes: 2 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
- -c
- |
set -eu
if [ "$TAG_NAME" = "" ] && [ "$BRANCH_NAME" = "staging" ]; then
if [ "$TAG_NAME" = "" ] && [ "$BRANCH_NAME" = "master" ]; then
docker tag gcr.io/$PROJECT_ID/alpaca-py:latest gcr.io/$PROJECT_ID/alpaca-py:${BRANCH_NAME}-latest
docker push gcr.io/$PROJECT_ID/alpaca-py:${BRANCH_NAME}-latest
fi
Expand All @@ -54,7 +54,7 @@ steps:
- -c
- |
set -eu
if [ "$TAG_NAME" = "" ] && [ "$BRANCH_NAME" = "staging" ] ; then
if [ "$TAG_NAME" = "" ] && [ "$BRANCH_NAME" = "master" ] ; then
SA_TOKEN="$$SA_TOKEN_STAGING"
elif [ "$TAG_NAME" != "" ]; then
SA_TOKEN="$$SA_TOKEN_MASTER"
Expand Down

0 comments on commit 44b4f37

Please sign in to comment.