Skip to content

Commit

Permalink
Remove staging env deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
phanikumv committed Sep 21, 2022
1 parent ecd5881 commit 99cbd80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 87 deletions.
81 changes: 0 additions & 81 deletions .circleci/integration-tests/Dockerfile.gen_1

This file was deleted.

7 changes: 1 addition & 6 deletions .circleci/integration-tests/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ for dag in $(find "${PROVIDER_PATH}" -type f -name 'example_*'); do cp "${dag}"

# Build image and deploy
BUILD_NUMBER=$(awk 'BEGIN {srand(); print srand()}')
if [[ ${DEPLOYMENT_INSTANCE} == "staging" ]]; then
IMAGE_NAME=registry.${DOCKER_REGISTRY}/${RELEASE_NAME}/airflow:ci-${BUILD_NUMBER}
docker build -t "${IMAGE_NAME}" -f "${SCRIPT_PATH}"/Dockerfile.gen_1 "${SCRIPT_PATH}"
docker login registry."${DOCKER_REGISTRY}" -u _ -p "${ASTRONOMER_API_KEY}"
docker push "${IMAGE_NAME}"
elif [[ ${DEPLOYMENT_INSTANCE} == "astro-cloud" ]]; then
if [[ ${DEPLOYMENT_INSTANCE} == "astro-cloud" ]]; then
IMAGE_NAME=${DOCKER_REGISTRY}/${ORGANIZATION_ID}/${DEPLOYMENT_ID}:ci-${BUILD_NUMBER}
docker build -t "${IMAGE_NAME}" -f "${SCRIPT_PATH}"/Dockerfile.astro_cloud "${SCRIPT_PATH}"
docker login "${DOCKER_REGISTRY}" -u "${ASTRONOMER_KEY_ID}" -p "${ASTRONOMER_KEY_SECRET}"
Expand Down

0 comments on commit 99cbd80

Please sign in to comment.