mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-05 08:42:33 +00:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2aba011ada | ||
|
c1a92786b2 | ||
|
a8e35a94f5 | ||
|
5089f4cc71 | ||
|
a925d877bc | ||
|
a21fb32bc0 | ||
|
f8ef34077d |
19
.github/workflows/e2e-tests.yml
vendored
19
.github/workflows/e2e-tests.yml
vendored
@@ -23,16 +23,10 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
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
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: earthly/actions-setup@v1
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
packages: utils/earthly
|
|
||||||
- name: build iso
|
- name: build iso
|
||||||
run: |
|
run: |
|
||||||
# Configure earthly to use the docker mirror in CI
|
# Configure earthly to use the docker mirror in CI
|
||||||
@@ -76,11 +70,10 @@ jobs:
|
|||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
- name: Login to DockerHub
|
- name: Install earthly
|
||||||
uses: docker/login-action@v3
|
uses: earthly/actions-setup@v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_LOGIN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
run: |
|
run: |
|
||||||
curl -L https://github.com/mudler/luet/releases/download/0.33.0/luet-0.33.0-linux-amd64 -o luet
|
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 mv luet /usr/bin/luet
|
||||||
sudo mkdir -p /etc/luet/repos.conf.d/
|
sudo mkdir -p /etc/luet/repos.conf.d/
|
||||||
sudo luet repo add -y kairos --url quay.io/kairos/packages --type docker
|
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
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@@ -25,10 +25,9 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: earthly/actions-setup@v1
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
packages: utils/earthly
|
|
||||||
- name: Run Lint checks
|
- name: Run Lint checks
|
||||||
run: |
|
run: |
|
||||||
earthly +lint
|
earthly +lint
|
||||||
|
7
.github/workflows/unit-tests.yml
vendored
7
.github/workflows/unit-tests.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
unit-tests:
|
unit-tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: ["1.23-bookworm"]
|
go-version: ["1.24-bookworm"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -21,10 +21,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Install earthly
|
- name: Install earthly
|
||||||
uses: Luet-lab/luet-install-action@v1
|
uses: earthly/actions-setup@v1
|
||||||
with:
|
with:
|
||||||
repository: quay.io/kairos/packages
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
packages: utils/earthly
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
earthly +test --GO_VERSION=${{ matrix.go-version }}
|
earthly +test --GO_VERSION=${{ matrix.go-version }}
|
||||||
|
@@ -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
|
ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools
|
||||||
# renovate: datasource=docker depName=golang
|
# renovate: datasource=docker depName=golang
|
||||||
ARG GO_VERSION=1.23-bookworm
|
ARG GO_VERSION=1.24-bookworm
|
||||||
ARG LUET_VERSION=0.33.0
|
ARG LUET_VERSION=0.33.0
|
||||||
|
|
||||||
build-challenger:
|
build-challenger:
|
||||||
|
@@ -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") {
|
if strings.Contains(result.Error, "x509: certificate signed by unknown authority") {
|
||||||
return "", false, errBadCertificate
|
return "", false, errBadCertificate
|
||||||
}
|
}
|
||||||
return "", false, fmt.Errorf(result.Error)
|
return "", false, errors.New(result.Error)
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", false, errPartNotFound
|
return "", false, errPartNotFound
|
||||||
|
Reference in New Issue
Block a user