mirror of
https://github.com/fluxcd/flagger.git
synced 2026-03-02 01:30:48 +00:00
16 lines
504 B
Bash
Executable File
16 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
|
|
|
|
echo '>>> Building Flagger'
|
|
cd ${REPO_ROOT} && docker build -t test/flagger:latest . -f Dockerfile
|
|
|
|
echo '>>> Installing Flagger'
|
|
kind load docker-image test/flagger:latest
|
|
kubectl apply -f ${REPO_ROOT}/artifacts/flagger/
|
|
kubectl -n istio-system set image deployment/flagger flagger=test/flagger:latest
|
|
kubectl -n istio-system rollout status deployment/flagger
|