mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-16 15:09:01 +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
|
||||
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
|
||||
|
||||
# Configure earthly to use the docker mirror in CI
|
||||
|
@@ -15,6 +15,14 @@ build-challenger:
|
||||
image:
|
||||
FROM $BASE_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
|
||||
SAVE IMAGE $IMAGE
|
||||
|
||||
|
Reference in New Issue
Block a user