From 14ff3b2ca4bce84178b6ee0162ec42cd57912ba6 Mon Sep 17 00:00:00 2001 From: danfengliu Date: Mon, 5 Jul 2021 12:04:49 +0800 Subject: [PATCH] Add trigger file for building base If build base images is needed in a unexpected situation, build base images action will be triggered by making a modification of .buildbaselog. Signed-off-by: danfengliu --- .buildbaselog | 12 ++++++++++++ .github/workflows/build-package.yml | 5 ++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .buildbaselog diff --git a/.buildbaselog b/.buildbaselog new file mode 100644 index 0000000000..7ae5623223 --- /dev/null +++ b/.buildbaselog @@ -0,0 +1,12 @@ +# Please add memo for logging the reason to trigger build base images action. +# Note: +# Any modifiction of this file will trigger base images build action. + + +%changelog + +* Add date here... Add signature here... +- Add your reason here... + +* Jul 15 2021 +- Create this file to trigger build base action in buld-package workflow \ No newline at end of file diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index 1a3c533a7b..cdb7726f43 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -46,7 +46,10 @@ jobs: with: path: src/github.com/goharbor/harbor - name: Build Base Image - if: contains(steps.changed-files.outputs.modified, 'Dockerfile.base') || contains(steps.changed-files.outputs.modified, 'VERSION') + if: | + contains(steps.changed-files.outputs.modified, 'Dockerfile.base') || + contains(steps.changed-files.outputs.modified, 'VERSION') || + contains(steps.changed-files.outputs.modified, '.buildbaselog') run: | set -x echo "BUILD_BASE=true" >> $GITHUB_ENV