Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Releases: labring/sealos-action

v0.0.7

18 Feb 06:08
Compare
Choose a tag to compare

v0.0.6

17 Feb 05:58
Compare
Choose a tag to compare

support arm action

v0.0.5

14 Feb 08:08
Compare
Choose a tag to compare

v0.0.4

10 Feb 03:15
Compare
Choose a tag to compare

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

SealosByRelease:

steps:
  - name: Auto install sealos
    uses: labring/sealos-action@v0.0.3
    with:
      sealosVersion: 4.1.3
      
  - name: Sealos version
    run:  sudo sealos version
    
  - name: Login sealos
    run: |
     sudo sealos login -u ${{ github.repository_owner }} -p ${{ secrets.GH_TOKEN }} --debug ghcr.io
     
  - name: Build sealos image by dockerfile
    working-directory: test/build-dockerfile
    run: |
      sudo sealos build -t testactionimage:dockerfile -f Dockerfile .
      
  - name: Build sealos image by kubefile
    working-directory: test/build-kubefile
    run: |
      sudo sealos build -t testactionimage:kubefile -f Kubefile .
      
  - name: Run images
    run: |
     sudo sealos images
  - name: Auto install k8s using sealos
    run: |
      sudo sealos run  labring/kubernetes:v1.24.0 --single

SealosByMainCode:

steps:
  - name: Auto install sealos
    uses: labring/sealos-action@v0.0.3
    with:
      type: install-dev
      sealosGit: https://github.com/cuisongliu/sealos.git
      sealosGitBranch: main
      goAddr: https://go.dev/dl/go1.20.linux-amd64.tar.gz
      pruneCRI: true
      
  - name: Sealos version
    run:  sudo sealos version
    
  - name: Login sealos
    run: |
     sudo sealos login -u ${{ github.repository_owner }} -p ${{ secrets.GH_TOKEN }} --debug ghcr.io
     
  - name: Build sealos image by dockerfile
    working-directory: test/build-dockerfile
    run: |
      sudo sealos build -t testactionimage:dockerfile -f Dockerfile .
      
  - name: Build sealos image by kubefile
    working-directory: test/build-kubefile
    run: |
      sudo sealos build -t testactionimage:kubefile -f Kubefile .
      
  - name: Run images
    run: |
     sudo sealos images
  - name: Auto install k8s using sealos
    run: |
      sudo sealos run  labring/kubernetes:v1.24.0 --single
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
sealosGitBranch sealos git branch, using type=install-dev main
pruneCRI pruneCRI pkg ex: docker,runc,containerd true
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

0.0.4

  1. support git branch
  2. support prune cri pkg

Test

Action

Running

v0.0.3

09 Feb 17:34
Compare
Choose a tag to compare

0.0.3

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

v0.0.3-rc3

09 Feb 17:25
Compare
Choose a tag to compare
v0.0.3-rc3 Pre-release
Pre-release
fix actions

v0.0.3-rc2

09 Feb 17:23
Compare
Choose a tag to compare
v0.0.3-rc2 Pre-release
Pre-release

Auto setup sealos

0.0.3

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

v0.0.3-rc1

09 Feb 17:13
Compare
Choose a tag to compare
v0.0.3-rc1 Pre-release
Pre-release

Auto setup sealos

0.0.3

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

v0.0.2

31 Oct 12:22
Compare
Choose a tag to compare
add sealos type cmd

v0.0.2-rc2

31 Oct 12:01
Compare
Choose a tag to compare
v0.0.2-rc2 Pre-release
Pre-release
add sealos type cmd