mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-06 04:21:09 +00:00
* update ignore files * setup poetry * add db seeds * black * set up compose * backfill script * add makefile, update readme * update poetry * readme * Fixes * cleanup and rate limit changes * poetry 1.0.5 * some more cleanup * k8s * k8s * update yml * cleanup and admin * deploy
13 lines
769 B
Bash
13 lines
769 B
Bash
#!/usr/bin/env bash
|
|
poetry version major
|
|
export PYPISTATS_VERSION=$(poetry version | tail -c +14)
|
|
docker build -t us.gcr.io/pypistats-org/pypistats:${PYPISTATS_VERSION} .
|
|
docker push us.gcr.io/pypistats-org/pypistats:${PYPISTATS_VERSION}
|
|
kubectl create secret generic pypistats-secrets --from-env-file=gke.env --namespace=pypistats --dry-run -o yaml | kubectl apply -f -
|
|
sed -i '.bak' 's|us.gcr.io\/pypistats-org\/pypistats.*|us.gcr.io\/pypistats-org\/pypistats:'"$PYPISTATS_VERSION"'|g' kubernetes/*.yaml
|
|
rm kubernetes/*.bak
|
|
kubectl apply -f kubernetes/redis.yaml --namespace=pypistats
|
|
kubectl apply -f kubernetes/tasks.yaml --namespace=pypistats
|
|
kubectl apply -f kubernetes/flower.yaml --namespace=pypistats
|
|
kubectl apply -f kubernetes/web.yaml --namespace=pypistats
|