Skip to content

Instantly share code, notes, and snippets.

@linkdd
Created January 23, 2022 03:16
Show Gist options
  • Save linkdd/5b341631399651e7000799874e31d838 to your computer and use it in GitHub Desktop.
Save linkdd/5b341631399651e7000799874e31d838 to your computer and use it in GitHub Desktop.
Example of KinD cluster creation in a Github Workflow
- name: setup@kindconfig
run: |
kind_in="${{ github.workspace }}/.github/config/kind.yml.in"
kind_out="${{ github.workspace }}/.github/config/kind.yml"
hostip=$(sh .github/scripts/get-docker-host.sh)
sed "s/127.0.0.1/$hostip/g" $kind_in > $kind_out
- name: setup@kubernetes
uses: engineerd/setup-kind@v0.5.0
with:
config: .github/config/kind.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment