Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file

GitHub Action

Auto setup sealos

v0.0.2-rc2 Pre-release

Auto setup sealos

file

Auto setup sealos

Auto setup sealos

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Auto setup sealos

uses: labring/[email protected]

Learn more about this action in labring/sealos-action

Choose a version

Intro

We need to create a temporary kubernetes cluster in github actions for running e2e tests in actions.

  • sealos run k8s in github actions

Usage

See action.yml

Sealos:

steps:
  - name: Auto install sealos
    uses: labring/[email protected]
    with:
      sealosVersion: 4.1.3
      buildah: false
      debug: true
      sealctl: true
  - name: Sealos version
    uses: labring/[email protected]
    with:
      type: version
  - name: Login sealos
    uses: labring/[email protected]
    with:
      type: login
      username: labring
      password: ${{ secrets.REGISTRY }}
      registry: docker.io
  - name: Build sealos image by dockerfile
    uses: labring/[email protected]
    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/[email protected]
    with:
      type: build
      image: ghcr.io/${{ github.repository_owner }}/testactionimage:kubefile
      debug: true
      working-directory: test/build-kubefile
  - name: Push sealos image
    uses: labring/[email protected]
    with:
      type: push
      image: ghcr.io/${{ github.repository_owner }}/testactionimage:dockerfile
      debug: true
  - name: Run images
    uses: labring/[email protected]
    with:
      type: images
      debug: true
  - name: Auto install k8s using sealos
    uses: labring/[email protected]
    with:
      image: labring/kubernetes:v1.24.0
      debug: true
      type: run
Name Description Default
image kubernetes rootfs image labring/kubernetes:v1.24.0
sealosVersion sealos version 4.1.3
buildah install buildah to /usr/bin false
debug debug mode false
sealctl install sealctl to /usr/bin false

Installers comparison

sealos: Supports cluster image, it is very convenient to install helm, ingress, cert-manager, @see https://sealos.io

ChangeLog

v0.0.1

  1. support sealos run k8s and app in action
  2. support install buildah param

0.0.2

  1. support working-directory
  2. support sealctl
  3. support debug mode
  4. support install/build/run-k8s/run-app/login/push/version/images

Feature

  1. support sealos,sealctl (url,file,oci),not release version