mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-16 22:28:29 +01:00
commit
3a1da33a71
2
.gitignore
vendored
2
.gitignore
vendored
@ -18,3 +18,5 @@ TAGS
|
|||||||
/docker/app/
|
/docker/app/
|
||||||
.stack-work
|
.stack-work
|
||||||
/stackage-database/
|
/stackage-database/
|
||||||
|
*~
|
||||||
|
*#
|
||||||
|
|||||||
@ -85,6 +85,7 @@ deploy_prod:
|
|||||||
url: https://www.stackage.org/
|
url: https://www.stackage.org/
|
||||||
variables:
|
variables:
|
||||||
DEPLOYMENT_NAME: "stackage-server-prod"
|
DEPLOYMENT_NAME: "stackage-server-prod"
|
||||||
|
CRON_DEPLOYMENT_NAME: "stackage-server-cron-prod"
|
||||||
PROD_DEPLOYMENT_IMAGE: "fpco/stackage-server-prod:${CI_BUILD_REF_SLUG}_${CI_PIPELINE_ID}"
|
PROD_DEPLOYMENT_IMAGE: "fpco/stackage-server-prod:${CI_BUILD_REF_SLUG}_${CI_PIPELINE_ID}"
|
||||||
script:
|
script:
|
||||||
- export
|
- export
|
||||||
@ -99,4 +100,6 @@ deploy_prod:
|
|||||||
- docker tag "$DEPLOYMENT_IMAGE" "fpco/stackage-server-prod:latest"
|
- docker tag "$DEPLOYMENT_IMAGE" "fpco/stackage-server-prod:latest"
|
||||||
- docker push "fpco/stackage-server-prod:latest"
|
- docker push "fpco/stackage-server-prod:latest"
|
||||||
- kubectl set image "deployment/$DEPLOYMENT_NAME" stackage-server="$PROD_DEPLOYMENT_IMAGE"
|
- kubectl set image "deployment/$DEPLOYMENT_NAME" stackage-server="$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"
|
||||||
|
|||||||
@ -32,9 +32,10 @@ before_install:
|
|||||||
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Build dependencies. Start with just haskell-src-exts since it requires a lot
|
# Build dependencies. Start with just haskell-src-exts and then store since
|
||||||
# of memory and we want it to build by itself.
|
# they require a lot of memory and we want it to build by itself.
|
||||||
- stack --no-terminal --install-ghc build haskell-src-exts
|
- stack --no-terminal --install-ghc build haskell-src-exts
|
||||||
|
- stack --no-terminal --install-ghc build store
|
||||||
- stack --no-terminal --install-ghc test --only-dependencies
|
- stack --no-terminal --install-ghc test --only-dependencies
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user