diff --git a/Dockerfile b/Dockerfile index c2516f24..998dd36e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/cloudbuild.yaml b/cloudbuild.yaml index b51ed3a5..7146926d 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -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 @@ -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"