Skip to content

Commit

Permalink
Merge list and cache step
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Parajuli <[email protected]>
  • Loading branch information
kiranparajuli589 committed Aug 25, 2022
1 parent 7f7e610 commit 590f1a9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -2440,8 +2440,7 @@ def cacheOcisPipeline(ctx):
},
"steps": checkForExistingOcisCache(ctx) +
buildOcis() +
cacheOcis() +
listRemoteCache(),
cacheOcis(),
"volumes": [{
"name": "gopath",
"temp": {},
Expand Down Expand Up @@ -2520,16 +2519,6 @@ def cacheOcis():
"pwd && ls -la %s/$OCIS_COMMITID" % dir["base"],
"mc alias set s3 $MC_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY",
"mc cp -r -a %s/$OCIS_COMMITID/ocis s3/$CACHE_BUCKET/ocis-build/$OCIS_COMMITID" % dir["base"],
],
}]

def listRemoteCache():
return [{
"name": "list-remote-cache",
"image": MINIO_MC,
"environment": minio_mc_environment,
"commands": [
"mc alias set s3 $MC_HOST $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY",
"mc ls --recursive s3/$CACHE_BUCKET/ocis-build",
],
}]
Expand Down

0 comments on commit 590f1a9

Please sign in to comment.