You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Auto setup sealos
v0.0.3-rc1
Pre-release
We need to create a temporary kubernetes cluster in github actions for running e2e tests in actions.
- setup sealos in github actions
See action.yml
Sealos:
steps:
- name: Auto install sealos
uses: labring/sealos-action@v0.0.2
with:
sealosVersion: 4.1.3
buildah: false
debug: true
sealctl: true
- name: Sealos version
uses: labring/sealos-action@v0.0.2
with:
type: version
- name: Login sealos
uses: labring/sealos-action@v0.0.2
with:
type: login
username: labring
password: ${{ secrets.REGISTRY }}
registry: docker.io
- name: Build sealos image by dockerfile
uses: labring/sealos-action@v0.0.2
with:
type: build
image: ghcr.io/${{ github.repository_owner }}/testactionimage:dockerfile
debug: true
working-directory: test/build-dockerfile
- name: Build sealos image by kubefile
uses: labring/sealos-action@v0.0.2
with:
type: build
image: ghcr.io/${{ github.repository_owner }}/testactionimage:kubefile
debug: true
working-directory: test/build-kubefile
- name: Push sealos image
uses: labring/sealos-action@v0.0.2
with:
type: push
image: ghcr.io/${{ github.repository_owner }}/testactionimage:dockerfile
debug: true
- name: Run images
uses: labring/sealos-action@v0.0.2
with:
type: images
debug: true
- name: Auto install k8s using sealos
uses: labring/sealos-action@v0.0.2
with:
image: labring/kubernetes:v1.24.0
debug: true
type: run-k8s
Name | Description | Default |
---|---|---|
type |
sealos action type, 'install/install-dev' | install |
sealosVersion |
sealos version | 4.1.3 |
working-directory |
working directory for build image | `` |
sealosGit |
sealos git addr, using type=install-dev | https://github.com/labring/sealos.git |
goAddr |
go tar download addr, using type=install-dev | https://go.dev/dl/go1.20.linux-amd64.tar.gz |
sealos: Supports cluster image
, it is very convenient to install helm, ingress, cert-manager, @see https://sealos.io
- support sealos run k8s and app in action
- support install buildah param
- support working-directory
- support sealctl
- support debug mode
- support install/build/run-k8s/run-app/login/push/version/images
- support main sealos build
- delete build/run-k8s/run-app/login/push/version/images
- support install-dev