Skip to content

Commit

Permalink
Merge branch 'staging' into 'master'
Browse files Browse the repository at this point in the history
Staging -> Master

See merge request flagsmith/bullet-train-api!264
  • Loading branch information
matthewelwell committed Jan 20, 2021
2 parents fd91907 + 6b97fe9 commit c4891b3
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ test:
- black --check .
- pytest src -p no:warnings

build-dockerhub:
stage: build
image:
# TODO: use latest instead of debug once we get to the bottom of issue using latest tag
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
variables:
DOCKER_HUB_AUTH: $DOCKER_HUB_AUTH
script:
- if [ "$CI_COMMIT_REF_NAME" == "master" ]; then IMAGE_TAG="latest"; else IMAGE_TAG=$CI_COMMIT_REF_SLUG; fi
- echo $CI_COMMIT_REF_NAME > $CI_PROJECT_DIR/src/CI_COMMIT_REF_NAME
- echo $CI_COMMIT_SHA > $CI_PROJECT_DIR/src/CI_COMMIT_SHA
- echo $IMAGE_TAG > $CI_PROJECT_DIR/src/IMAGE_TAG
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_HUB_AUTH\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/Dockerfile --destination flagsmith/flagsmith-api:$IMAGE_TAG
only:
- master
- tags
- develop
# TODO: we're having intermittent issues with 504 errors pushing to docker hub using kaniko. Need to replace.
#build-dockerhub:
# stage: build
# image:
# # TODO: use latest instead of debug once we get to the bottom of issue using latest tag
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
# variables:
# DOCKER_HUB_AUTH: $DOCKER_HUB_AUTH
# script:
# - if [ "$CI_COMMIT_REF_NAME" == "master" ]; then IMAGE_TAG="latest"; else IMAGE_TAG=$CI_COMMIT_REF_SLUG; fi
# - echo $CI_COMMIT_REF_NAME > $CI_PROJECT_DIR/src/CI_COMMIT_REF_NAME
# - echo $CI_COMMIT_SHA > $CI_PROJECT_DIR/src/CI_COMMIT_SHA
# - echo $IMAGE_TAG > $CI_PROJECT_DIR/src/IMAGE_TAG
# - echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_HUB_AUTH\"}}}" > /kaniko/.docker/config.json
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/docker/Dockerfile --destination flagsmith/flagsmith-api:$IMAGE_TAG
# only:
# - master
# - tags
# - develop

deploydevelop:
image: ilyasemenov/gitlab-ci-git-push
Expand Down

0 comments on commit c4891b3

Please sign in to comment.