Skip to content

Commit

Permalink
Add CI test for build-push image
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Oct 5, 2021
1 parent 54a80ca commit 07e1f68
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,24 @@ test_get_ci_vm_task:
test_script: "get_ci_vm/test.sh"


test_build-push_task:
name: "Test build-push VM functions"
alias: test_build-push
depends_on:
- cache_images
gce_instance:
image_project: "libpod-218412"
image: "build-push-c${IMG_SFX}"
zone: "us-central1-a"
disk: 200
env:
TEST_FQIN: quay.io/buildah/do_not_use
# Robot account credentials for test-push to $TEST_FQIN
BUILDAH_USERNAME: ENCRYPTED[FIXME]
BUILDAH_PASSWORD: ENCRYPTED[FIXME]
script: bash ./build-push/test.sh


# N/B: "latest" image produced after PR-merge (branch-push)
cron_imgobsolete_task: &lifecycle_cron
name: "Periodicly mark old images obsolete"
Expand Down Expand Up @@ -348,6 +366,7 @@ success_task:
- cron_imgprune
- test_gcsupld
- test_get_ci_vm
- test_build-push
container:
<<: *ci_container
clone_script: *noop
Expand Down
5 changes: 5 additions & 0 deletions build-push/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# DO NOT USE

This directory contains scripts/data used by the Cirrus-CI
`test_build-push` task. It is not intended to be used otherwise
and may cause harm.
12 changes: 12 additions & 0 deletions build-push/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


# DO NOT USE - This script is intended to be called by the Cirrus-CI
# `test_build-push` task. It is not intended to be used otherwise
# and may cause harm.
SCRIPT_DIRPATH=$(dirpath ${BASH_SOURCE[0]})
source $SCRIPT_DIRPATH/../lib.sh

req_env_vars CIRRUS_CI TEST_FQIN BUILDAH_USERNAME

# TODO: Actually write some tests
fail

0 comments on commit 07e1f68

Please sign in to comment.