I have this pipelines for a VueJs project and I want to add a new step to delete the existing files from the Google Cloud Bucket before I move the new files(between step 1 an step 2). Any ideea how i can do that?
Thank you
pipelines:
branches:
develop:
- step:
name: Generate Static Files
image: node:12.22.9
caches:
- node
script:
- cd admin
- npm install --omit=dev
- npm run build
artifacts:
- admin/dist/*
- admin/dist/**/*
- admin/dist/**/**
- step:
name: Deploy to GCP Bucket
image: atlassian/default-image:latest
script:
- pipe: atlassian/google-cloud-storage-deploy:2.1.0
variables:
KEY_FILE: $KEY_FILE
BUCKET: 'develop'
SOURCE: 'admin/dist/'
Hi Ionut,
You would need to access that location and perform deletion commands from there - the google-cloud-storage-deploy pipe only handles deployment. You would need to execute a script for that.
Cheers!
- Ben (Bitbucket Cloud Support)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.