Merge pull request #15748 from YangJiao0817/cherry-pick-refresh-base-to-release-1.10.0

Cherry pick refresh base to release 1.10.0
This commit is contained in:
Yang Jiao 2021-10-11 14:50:05 +08:00 committed by GitHub
commit 855ef73364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

12
.buildbaselog Normal file
View File

@ -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 <danfengl@vmware.com>
- Create this file to trigger build base action in buld-package workflow

View File

@ -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 }}
@ -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)