Skip to content

Commit

Permalink
UPDATE-FLAGS - update ci/cd example.
Browse files Browse the repository at this point in the history
  • Loading branch information
hashmap-kz committed Jan 8, 2025
1 parent 83a570e commit d47a1e3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ _A `kubectl` plugin for substituting environment variables in Kubernetes manifes
```bash
kubectl envsubst --version
```
4. Example installation script for Unix-based systems (requires curl and jq):
```bash
os="linux" # linux,darwin
ar="amd64" # amd64,arm64
tg="$(curl -s https://api.github.com/repos/hashmap-kz/kubectl-envsubst/releases/latest | jq -r .tag_name)"
curl -L "https://github.com/hashmap-kz/kubectl-envsubst/releases/download/${tg}/kubectl-envsubst_${tg}_${os}_${ar}.tar.gz" | \
tar -xzf - -C /usr/local/bin && chmod +x /usr/local/bin/kubectl-envsubst
```

---

Expand Down Expand Up @@ -316,12 +308,13 @@ The CI/CD stage may look like this:
deploy:
stage: deploy
before_script:
- apk update && apk add --no-cache bash curl
- apk update && apk add --no-cache bash curl jq
# setup kubectl
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl && cp ./kubectl /usr/local/bin
# setup kubectl-envsubst plugin
- curl -L "https://github.com/hashmap-kz/kubectl-envsubst/releases/download/v1.0.20/kubectl-envsubst_v1.0.20_linux_amd64.tar.gz" | \
# setup kubectl-envsubst plugin (using latest release tag)
- tg="$(curl -s https://api.github.com/repos/hashmap-kz/kubectl-envsubst/releases/latest | jq -r .tag_name)" && \
curl -L "https://github.com/hashmap-kz/kubectl-envsubst/releases/download/${tg}/kubectl-envsubst_${tg}_linux_amd64.tar.gz" | \
tar -xzf - -C /usr/local/bin && chmod +x /usr/local/bin/kubectl-envsubst
tags:
- dind
Expand Down

0 comments on commit d47a1e3

Please sign in to comment.