Skip to content

Commit

Permalink
🤖 Increase test images livespan to 24h (#1558)
Browse files Browse the repository at this point in the history
Increase test images livespan to 24h

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
  • Loading branch information
mauromorales committed Jun 27, 2023
1 parent 109bc29 commit 0294acd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ jobs:
cosign attest --type spdx --predicate $spdx $image_ref
- name: Push to testing
run: |
docker tag quay.io/kairos/core-${{ matrix.flavor }}:latest ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:8h
docker push ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:8h
docker tag quay.io/kairos/core-${{ matrix.flavor }}:latest ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:24h
docker push ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:24h
build-framework:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs:
Expand Down Expand Up @@ -466,7 +466,7 @@ jobs:
- run: |
earthly +run-qemu-test --PREBUILT_ISO=$(ls *.iso) \
--FLAVOR=${{ matrix.flavor }} \
--CONTAINER_IMAGE=ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:8h \
--CONTAINER_IMAGE=ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:24h \
--TEST_SUITE=upgrade-with-cli
- uses: actions/upload-artifact@v3
if: failure()
Expand Down Expand Up @@ -538,7 +538,7 @@ jobs:
- run: |
earthly +run-qemu-test --PREBUILT_ISO=$(ls kairos-${{matrix.flavor}}-*.iso) \
--FLAVOR=${{ matrix.flavor }} \
--CONTAINER_IMAGE=ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:8h \
--CONTAINER_IMAGE=ttl.sh/kairos-${{ matrix.flavor }}-${{ github.sha }}:24h \
--TEST_SUITE=upgrade-latest-with-cli
- uses: actions/upload-artifact@v3
if: failure()
Expand Down
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -867,21 +867,21 @@ pull-build-artifacts:
COPY +uuidgen/UUIDGEN ./
COPY +version/VERSION ./
ARG UUIDGEN=$(cat UUIDGEN)
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:8h
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:24h

COPY +luet/luet /usr/bin/luet
RUN luet util unpack $BUNDLE_IMAGE build
SAVE ARTIFACT build AS LOCAL build

## Push build artifacts as BUNDLE_IMAGE (expected arg, common is to use ttl.sh/$(uuidgen):8h)
## Push build artifacts as BUNDLE_IMAGE (expected arg, common is to use ttl.sh/$(uuidgen):24h)
push-build-artifacts:
ARG OSBUILDER_IMAGE
FROM $OSBUILDER_IMAGE
RUN zypper in -y jq docker
COPY +uuidgen/UUIDGEN ./
COPY +version/VERSION ./
ARG UUIDGEN=$(cat UUIDGEN)
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:8h
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:24h

COPY . .
COPY +luet/luet /usr/bin/luet
Expand All @@ -902,7 +902,7 @@ prepare-bundles-tests:
COPY +uuidgen/UUIDGEN ./
COPY +version/VERSION ./
ARG UUIDGEN=$(cat UUIDGEN)
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:8h
ARG BUNDLE_IMAGE=ttl.sh/$UUIDGEN:24h
# BUILD +examples-bundle --BUNDLE_IMAGE=$BUNDLE_IMAGE
ARG VERSION=$(cat VERSION)
RUN echo "version ${VERSION}"
Expand Down

0 comments on commit 0294acd

Please sign in to comment.