mirror of
https://github.com/imranismail/setup-kustomize.git
synced 2026-07-16 15:42:57 +00:00
Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -1,6 +1,4 @@
|
|||||||
# Github Action for setting up Kustomize
|
## TLDR
|
||||||
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
@@ -17,12 +15,12 @@ jobs:
|
|||||||
- uses: imranismail/setup-kustomize@master
|
- uses: imranismail/setup-kustomize@master
|
||||||
with:
|
with:
|
||||||
kustomize-version: "3.1.0"
|
kustomize-version: "3.1.0"
|
||||||
- run: git clone https://${REPO_TOKEN}@github.com/kfit-dev/deployments.git .
|
- run: git clone https://${REPO_TOKEN}@github.com/org/deployment.git .
|
||||||
env:
|
env:
|
||||||
REPO_TOKEN: ${{secrets.REPO_TOKEN}}
|
REPO_TOKEN: ${{secrets.REPO_TOKEN}}
|
||||||
- run: git branch deployments/favefood/${GITHUB_REF/refs\/heads/}
|
- run: git branch deployment/app/${GITHUB_REF/refs\/heads\//}
|
||||||
- run: kustomize edit set image favefood:${GITHUB_SHA}
|
- run: kustomize edit set image app:${GITHUB_SHA}
|
||||||
- run: git add .
|
- run: git add .
|
||||||
- run: git commit -m "Set `favefood` image tag to ${GITHUB_SHA}"
|
- run: git commit -m "Set `app` image tag to `${GITHUB_SHA}`"
|
||||||
- run: git push origin deployments/favefood/${GITHUB_REF/refs\/heads/}
|
- run: git push origin deployment/app/${GITHUB_REF/refs\/heads\//}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user