This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
Releases: labring/sealos-action
Releases · labring/sealos-action
v0.0.7
add prune
v0.0.6
support arm action
v0.0.5
add autoFetch
v0.0.4
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
- support sealos run k8s and app in action
- support install buildah param
0.0.2
- support working-directory
- support sealctl
- support debug mode
- support install/build/run-k8s/run-app/login/push/version/images
0.0.3
- support main sealos build
- delete build/run-k8s/run-app/login/push/version/images
- support install-dev
0.0.4
- support git branch
- support prune cri pkg
Test
v0.0.3
0.0.3
- support main sealos build
- delete build/run-k8s/run-app/login/push/version/images
- support install-dev
v0.0.3-rc3
fix actions
v0.0.3-rc2
Auto setup sealos
0.0.3
- support main sealos build
- delete build/run-k8s/run-app/login/push/version/images
- support install-dev
v0.0.3-rc1
Auto setup sealos
0.0.3
- support main sealos build
- delete build/run-k8s/run-app/login/push/version/images
- support install-dev
v0.0.2
add sealos type cmd
v0.0.2-rc2
add sealos type cmd