mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-19 17:21:36 +00:00
[Will drop]Allow building kcrypt from branches
Otherwise any changes that need both wont pass tests. Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
2
.github/workflows/e2e-tests.yml
vendored
2
.github/workflows/e2e-tests.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
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 utils/earthly
|
||||||
|
|
||||||
earthly -P +iso
|
earthly -P +iso --KCRYPT_DEV=true
|
||||||
export ISO=$PWD/build/challenger.iso
|
export ISO=$PWD/build/challenger.iso
|
||||||
|
|
||||||
# Configure earthly to use the docker mirror in CI
|
# Configure earthly to use the docker mirror in CI
|
||||||
|
@@ -15,6 +15,14 @@ build-challenger:
|
|||||||
image:
|
image:
|
||||||
FROM $BASE_IMAGE
|
FROM $BASE_IMAGE
|
||||||
ARG IMAGE
|
ARG IMAGE
|
||||||
|
# TEST KCRYPT FROM BRANCH
|
||||||
|
ARG KCRYPT_DEV
|
||||||
|
ARG KCRYPT_DEV_BRANCH=main
|
||||||
|
IF [ "$KCRYPT_DEV" = "true" ]
|
||||||
|
RUN rm /usr/bin/kcrypt
|
||||||
|
COPY github.com/kairos-io/kcrypt:$KCRYPT_DEV_BRANCH+build-kcrypt/kcrypt /usr/bin/kcrypt
|
||||||
|
END
|
||||||
|
# END
|
||||||
COPY +build-challenger/kcrypt-discovery-challenger /system/discovery/kcrypt-discovery-challenger
|
COPY +build-challenger/kcrypt-discovery-challenger /system/discovery/kcrypt-discovery-challenger
|
||||||
SAVE IMAGE $IMAGE
|
SAVE IMAGE $IMAGE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user