Compare commits

..

7 Commits

Author SHA1 Message Date
Dimitris Karakasilis
2aba011ada Fix vet error
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-04-22 12:21:48 +03:00
Itxaka
c1a92786b2 Update unit-tests.yml with earthly 2025-04-22 10:54:44 +02:00
Itxaka
a8e35a94f5 Update e2e-tests.yml with earthly 2025-04-22 10:53:50 +02:00
Itxaka
5089f4cc71 Update Earthfile with new go version 2025-04-22 10:42:58 +02:00
Itxaka
a925d877bc Fix earthly in lint 2025-04-22 10:41:38 +02:00
Itxaka
a21fb32bc0 install earthyl manually 2025-04-22 10:37:44 +02:00
Dimitris Karakasilis
f8ef34077d Bump golang
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2025-04-22 11:17:36 +03:00
6 changed files with 14 additions and 25 deletions

View File

@@ -23,16 +23,10 @@ jobs:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASS }}
- name: Install earthly
uses: Luet-lab/luet-install-action@v1
uses: earthly/actions-setup@v1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: build iso
run: |
# Configure earthly to use the docker mirror in CI
@@ -76,11 +70,10 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Login to DockerHub
uses: docker/login-action@v3
- name: Install earthly
uses: earthly/actions-setup@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install deps
run: |
curl -L https://github.com/mudler/luet/releases/download/0.33.0/luet-0.33.0-linux-amd64 -o luet
@@ -88,7 +81,7 @@ jobs:
sudo mv luet /usr/bin/luet
sudo mkdir -p /etc/luet/repos.conf.d/
sudo luet repo add -y kairos --url quay.io/kairos/packages --type docker
LUET_NOLOCK=true sudo -E luet install -y container/kubectl utils/k3d utils/earthly
LUET_NOLOCK=true sudo -E luet install -y container/kubectl utils/k3d
- name: Download artifacts
uses: actions/download-artifact@v4
with:

View File

@@ -25,10 +25,9 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
- name: Install earthly
uses: Luet-lab/luet-install-action@v1
uses: earthly/actions-setup@v1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run Lint checks
run: |
earthly +lint

View File

@@ -13,7 +13,7 @@ jobs:
unit-tests:
strategy:
matrix:
go-version: ["1.23-bookworm"]
go-version: ["1.24-bookworm"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -21,10 +21,9 @@ jobs:
with:
fetch-depth: 0
- name: Install earthly
uses: Luet-lab/luet-install-action@v1
uses: earthly/actions-setup@v1
with:
repository: quay.io/kairos/packages
packages: utils/earthly
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: |
earthly +test --GO_VERSION=${{ matrix.go-version }}

View File

@@ -6,7 +6,7 @@ ARG BASE_IMAGE=quay.io/kairos/ubuntu:23.10-core-amd64-generic-$KAIROS_VERSION
ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools
# renovate: datasource=docker depName=golang
ARG GO_VERSION=1.23-bookworm
ARG GO_VERSION=1.24-bookworm
ARG LUET_VERSION=0.33.0
build-challenger:

View File

@@ -47,7 +47,7 @@ func getPass(server string, headers map[string]string, certificate string, parti
if strings.Contains(result.Error, "x509: certificate signed by unknown authority") {
return "", false, errBadCertificate
}
return "", false, fmt.Errorf(result.Error)
return "", false, errors.New(result.Error)
}
return "", false, errPartNotFound

4
go.mod
View File

@@ -1,8 +1,6 @@
module github.com/kairos-io/kairos-challenger
go 1.23.6
toolchain go1.24.1
go 1.24.2
require (
github.com/go-logr/logr v1.4.2