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.3-rc1 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/sealos-action@v0.0.3-rc1

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.

  • setup sealos in github actions

Usage

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

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

0.0.3

  1. support main sealos build
  2. delete build/run-k8s/run-app/login/push/version/images
  3. support install-dev

Test

Action

Running