nelsonsilva / setup-k3s

k3s GitHub Action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K3s GitHub action

This action sets up a K3s cluster.

Example usage

uses: nelsonsilva/setup-k3s

Developing

Install the dependencies

$ npm install

Build and package it for distribution

$ npm run build

If you want to run the action locally you can also use:

$ npx ts-node src/main.ts

Publish to a distribution branch

Actions are run from GitHub repos so we will checkin the packed dist folder.

Then run ncc and push the results:

$ git switch -c tmp
$ npm run build
$ git add -f dist
$ npm version minor -f
$ git push $(git tag --points-at HEAD)
$ git checkout master
$ git branch -D tmp

The action is now published! 🚀

About

k3s GitHub Action

License:MIT License


Languages

Language:TypeScript 100.0%