From 8f99b98731a3955a8ea6166b9504617d666b1d3e Mon Sep 17 00:00:00 2001 From: danfengliu Date: Mon, 26 Jul 2021 21:24:05 +0800 Subject: [PATCH 1/2] Modify GCP repo in build package workflow Signed-off-by: danfengliu --- .github/workflows/build-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index c998e125f..265a3c4c3 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -18,7 +18,7 @@ jobs: - ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master + - uses: google-github-actions/setup-gcloud@master with: version: '285.0.0' project_id: ${{ secrets.GCP_PROJECT_ID }} From 879d1d7a1d0b73304dff62bca696f4deefb82522 Mon Sep 17 00:00:00 2001 From: danfengliu Date: Mon, 5 Jul 2021 12:04:49 +0800 Subject: [PATCH 2/2] 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 000000000..7ae562322 --- /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 265a3c4c3..7932d4e38 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 base_image_tag=$(cat ./VERSION)