mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-09-20 17:38:26 +00:00
Merge pull request #59 from Dr-N00B/PE-3373
This commit is contained in:
49
.github/workflows/publish.yaml
vendored
49
.github/workflows/publish.yaml
vendored
@@ -1,49 +0,0 @@
|
|||||||
name: Publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
images:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
base-image:
|
|
||||||
- quay.io/kairos/core-opensuse-leap:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-20-lts:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-22-lts:v2.3.2
|
|
||||||
rke2-version:
|
|
||||||
- v1.26.4+rke2r1
|
|
||||||
- v1.25.3+rke2r1
|
|
||||||
- v1.25.2+rke2r1
|
|
||||||
- v1.25.0+rke2r1
|
|
||||||
- v1.24.7+rke2r1
|
|
||||||
- v1.24.6+rke2r1
|
|
||||||
- v1.24.4+rke2r1
|
|
||||||
- v1.23.12+rke2r1
|
|
||||||
- v1.23.13+rke2r1
|
|
||||||
- v1.23.10+rke2r1
|
|
||||||
- v1.22.15+rke2r1
|
|
||||||
- v1.22.13+rke2r1
|
|
||||||
platform:
|
|
||||||
- linux/amd64
|
|
||||||
env:
|
|
||||||
REGISTRY: quay.io
|
|
||||||
REGISTRY_USER: ${{ secrets.QUAY_USERNAME }}
|
|
||||||
REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker-practice/actions-setup-docker@master
|
|
||||||
- uses: earthly/actions-setup@v1
|
|
||||||
with:
|
|
||||||
version: "v0.6.30"
|
|
||||||
- run: echo $REGISTRY_PASSWORD | docker login -u $REGISTRY_USER --password-stdin $REGISTRY
|
|
||||||
- run: env | grep ACTIONS_ID_TOKEN_REQUEST > .env
|
|
||||||
- run: env | grep REGISTRY >> .env
|
|
||||||
- run: earthly --ci --push --platform=${{ matrix.platform }} +docker --RKE2_VERSION=${{ matrix.rke2-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
- run: earthly --ci +cosign --RKE2_VERSION=${{ matrix.rke2-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
|
|
25
.github/workflows/pull_request.yaml
vendored
25
.github/workflows/pull_request.yaml
vendored
@@ -35,28 +35,3 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: earthly --ci +provider-package-all-platforms --IMAGE_REPOSITORY=ghcr.io/kairos-io
|
- run: earthly --ci +provider-package-all-platforms --IMAGE_REPOSITORY=ghcr.io/kairos-io
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
base-image:
|
|
||||||
- quay.io/kairos/core-opensuse-leap:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-20-lts:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-22-lts:v2.3.2
|
|
||||||
rke2-version:
|
|
||||||
- v1.26.4+rke2r1
|
|
||||||
- v1.25.2+rke2r1
|
|
||||||
- v1.24.6+rke2r1
|
|
||||||
- v1.23.12+rke2r1
|
|
||||||
- v1.22.15+rke2r1
|
|
||||||
platform:
|
|
||||||
- linux/amd64
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker-practice/actions-setup-docker@master
|
|
||||||
- uses: earthly/actions-setup@v1
|
|
||||||
with:
|
|
||||||
version: "v0.6.30"
|
|
||||||
- run: earthly --ci --platform=${{ matrix.platform }} +docker --RKE2_VERSION=${{ matrix.rke2-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
VERSION 0.6
|
VERSION 0.6
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
ARG BASE_IMAGE=quay.io/kairos/core-opensuse-leap:v2.3.2
|
ARG BASE_IMAGE=quay.io/kairos/core-opensuse-leap:v2.4.3
|
||||||
ARG IMAGE_REPOSITORY=quay.io/kairos
|
ARG IMAGE_REPOSITORY=quay.io/kairos
|
||||||
|
|
||||||
ARG LUET_VERSION=0.34.0
|
ARG LUET_VERSION=0.34.0
|
||||||
|
9
main.go
9
main.go
@@ -112,7 +112,14 @@ func clusterProvider(cluster clusterplugin.Cluster) yip.YipConfig {
|
|||||||
stages = append(stages, importStage)
|
stages = append(stages, importStage)
|
||||||
}
|
}
|
||||||
|
|
||||||
stages = append(stages, yip.Stage{
|
stages = append(stages,
|
||||||
|
yip.Stage{
|
||||||
|
Name: "Waiting to finish extracting content",
|
||||||
|
Commands: []string{
|
||||||
|
"sleep 120",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
yip.Stage{
|
||||||
Name: "Enable Systemd Services",
|
Name: "Enable Systemd Services",
|
||||||
Systemctl: yip.Systemctl{
|
Systemctl: yip.Systemctl{
|
||||||
Enable: []string{
|
Enable: []string{
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
CONTENT_PATH=$1
|
CONTENT_PATH=$1
|
||||||
mkdir -p /var/lib/rancher/k3s/agent/images
|
mkdir -p /var/lib/rancher/rke2/agent/images
|
||||||
for tarfile in $(find $CONTENT_PATH -name "*.tar" -type f)
|
for tarfile in $(find $CONTENT_PATH -name "*.tar" -type f)
|
||||||
do
|
do
|
||||||
cp $tarfile /var/lib/rancher/rke2/agent/images
|
cp $tarfile /var/lib/rancher/rke2/agent/images
|
||||||
|
Reference in New Issue
Block a user