Skip to content

Commit

Permalink
Fix latest folder in releases
Browse files Browse the repository at this point in the history
The gcs-upload task by default uses "gsutil cp -r" to copy the
local folder with release files to the latest folder.

That works well if "latest" does not exists, otherwise it creates
a "<version>" folder into "latest", which is not the desired
behaviour.

The "deleteExtraFiles" flag in the task means that "gsutil rsync -r"
is used instead, which achieves the correct behaviour in all
cases ("latest" exists or not.

Signed-off-by: Andrea Frittoli <[email protected]>
  • Loading branch information
afrittoli authored and tekton-robot committed Sep 26, 2023
1 parent 0e1b1a3 commit 5b44c32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tekton/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ spec:
value: $(params.versionTag)
- name: serviceAccountPath
value: $(params.serviceAccountPath)
- name: deleteExtraFiles
value: "true" # Uses rsync to copy content into latest
- name: report-bucket
runAfter: [publish-to-bucket]
params:
Expand Down

0 comments on commit 5b44c32

Please sign in to comment.