From 5a2809aca2ee58aaedae553057c80e951a8c3701 Mon Sep 17 00:00:00 2001 From: Otto Bittner Date: Thu, 28 Jul 2022 09:56:49 +0200 Subject: [PATCH] Disable automatic image builds (#310) We only need new images for bootstrapper changes for each release. Between releases we can use debug images. For releases we have to build images manually anyway. Therefore, let's not build these images unnecessarily. --- .github/workflows/build-bootstrapper.yml | 31 ++++++++++++------------ 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-bootstrapper.yml b/.github/workflows/build-bootstrapper.yml index f9e727a50..0a657c918 100644 --- a/.github/workflows/build-bootstrapper.yml +++ b/.github/workflows/build-bootstrapper.yml @@ -54,18 +54,19 @@ jobs: && aws s3 cp ${{ github.workspace }}/build/ s3://${{ secrets.PUBLIC_BUCKET_NAME }}/bootstrapper/ --exclude "*" --include "bootstrapper-*" --include "constellation" --recursive --quiet) shell: bash {0} working-directory: ${{ github.workspace }}/build/ - - call-coreos: - needs: build-bootstrapper - if: ${{ (github.ref == 'refs/heads/main') && startsWith(needs.build-bootstrapper.outputs.bootstrapper-name, 'bootstrapper-') }} - uses: ./.github/workflows/build-coreos.yml - with: - bootstrapper-name: ${{ needs.build-bootstrapper.outputs.bootstrapper-name }} - secrets: - CI_GITHUB_REPOSITORY: ${{ secrets.CI_GITHUB_REPOSITORY }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} - BUCKET_NAME: ${{ secrets.BUCKET_NAME }} - PUBLIC_BUCKET_NAME: ${{ secrets.PUBLIC_BUCKET_NAME }} - AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }} +# This is disabled for now as release images need to be built manually anyway. +# For cases where you need a new image because of bootstrapper changes, either trigger a manual build or use a debug image. +# call-coreos: +# needs: build-bootstrapper +# if: ${{ (github.ref == 'refs/heads/main') && startsWith(needs.build-bootstrapper.outputs.bootstrapper-name, 'bootstrapper-') }} +# uses: ./.github/workflows/build-coreos.yml +# with: +# bootstrapper-name: ${{ needs.build-bootstrapper.outputs.bootstrapper-name }} +# secrets: +# CI_GITHUB_REPOSITORY: ${{ secrets.CI_GITHUB_REPOSITORY }} +# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} +# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} +# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} +# BUCKET_NAME: ${{ secrets.BUCKET_NAME }} +# PUBLIC_BUCKET_NAME: ${{ secrets.PUBLIC_BUCKET_NAME }} +# AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}