From b0f954eef4128172cc3ff4a96457a7241d3ca6a8 Mon Sep 17 00:00:00 2001 From: ximon18 <3304436+ximon18@users.noreply.github.com> Date: Wed, 25 Mar 2020 22:24:55 +0100 Subject: [PATCH] Periodically rebuild the E2E test cache image. Note: The cron expression is set to a test value at present. --- .github/workflows/e2e test cache rebuild.yml | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/e2e test cache rebuild.yml diff --git a/.github/workflows/e2e test cache rebuild.yml b/.github/workflows/e2e test cache rebuild.yml new file mode 100644 index 00000000..c6309a3d --- /dev/null +++ b/.github/workflows/e2e test cache rebuild.yml @@ -0,0 +1,26 @@ +# The krillbuildbase image is used by the Krill E2E Test to accelerate the Rust compilation of Krill +# by including already built cargo crates for most if not all of Krills dependencies. We don't need +# to rebuild it all the time, but rebuilding it every now and again helps to keep the build time down. +# Ideally we'd use a different approach, e.g. some way of using a Rust build cache from within the +# Docker image build process, but for now we have this. +name: E2E Test Cache Image Builder + +# Run every Sunday +on: + schedule: + - cron: '30 * * * *' +# - cron: '0 0 * * SUN' + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.XE_DOCKER_USER }} + password: ${{ secrets.XE_DOCKER_PASS }} + repository: ximoneighteen/krillbuildbase + tags: latest + target: build