mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-19 15:41:56 +01:00
ci-cron deployment
This commit is contained in:
parent
bc228569a9
commit
2e44abc382
@ -43,6 +43,10 @@ build:
|
|||||||
docker tag "${DEPLOYMENT_IMAGE}" "${CI_REGISTRY_IMAGE}:latest"
|
docker tag "${DEPLOYMENT_IMAGE}" "${CI_REGISTRY_IMAGE}:latest"
|
||||||
docker push "${CI_REGISTRY_IMAGE}:latest"
|
docker push "${CI_REGISTRY_IMAGE}:latest"
|
||||||
fi
|
fi
|
||||||
|
if [[ "$CI_BUILD_REF_NAME" == "ci-cron" ]]; then
|
||||||
|
docker tag "${DEPLOYMENT_IMAGE}" "${CI_REGISTRY_IMAGE}:ci-cron"
|
||||||
|
docker push "${CI_REGISTRY_IMAGE}:ci-cron"
|
||||||
|
fi
|
||||||
|
|
||||||
deploy_review:
|
deploy_review:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@ -50,6 +54,7 @@ deploy_review:
|
|||||||
- branches
|
- branches
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
|
- ci-cron
|
||||||
environment:
|
environment:
|
||||||
name: stackage-server-review/$CI_BUILD_REF_NAME
|
name: stackage-server-review/$CI_BUILD_REF_NAME
|
||||||
url: https://stackage-server-$CI_BUILD_REF_SLUG.review.fpco-untrusted.fpcomplete.com/
|
url: https://stackage-server-$CI_BUILD_REF_SLUG.review.fpco-untrusted.fpcomplete.com/
|
||||||
@ -68,6 +73,7 @@ stop_review:
|
|||||||
- branches
|
- branches
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
|
- ci-cron
|
||||||
when: manual
|
when: manual
|
||||||
environment:
|
environment:
|
||||||
name: stackage-server-review/$CI_BUILD_REF_NAME
|
name: stackage-server-review/$CI_BUILD_REF_NAME
|
||||||
@ -103,3 +109,14 @@ deploy_prod:
|
|||||||
- kubectl set image "deployment/$CRON_DEPLOYMENT_NAME" stackage-server-cron="$PROD_DEPLOYMENT_IMAGE"
|
- kubectl set image "deployment/$CRON_DEPLOYMENT_NAME" stackage-server-cron="$PROD_DEPLOYMENT_IMAGE"
|
||||||
- kubectl rollout status "deployment/$DEPLOYMENT_NAME"
|
- kubectl rollout status "deployment/$DEPLOYMENT_NAME"
|
||||||
- kubectl rollout status "deployment/$CRON_DEPLOYMENT_NAME"
|
- kubectl rollout status "deployment/$CRON_DEPLOYMENT_NAME"
|
||||||
|
|
||||||
|
deploy_ci_cron:
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- ci-cron
|
||||||
|
variables:
|
||||||
|
CRON_DEPLOYMENT_NAME: "stackage-server-cron-ci"
|
||||||
|
script:
|
||||||
|
- *KUBELOGIN
|
||||||
|
- kubectl set image "deployment/$CRON_DEPLOYMENT_NAME" stackage-server-cron="$DEPLOYMENT_IMAGE"
|
||||||
|
- kubectl rollout status "deployment/$CRON_DEPLOYMENT_NAME"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user