Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to exclude the .git/ and readme.md file in google cloud storage deployment ?

Deleted user September 5, 2019

I want to exclude the .git/  directory and readme.md file to deploy on google cloud storage.

pipelines:
default:
- step:
name: Deploy to Gcloud
deployment: production
script:
- pipe: atlassian/google-cloud-storage-deploy:0.3.6
variables:
KEY_FILE: $GCP_KEYS
PROJECT: 'superman'
BUCKET: 'www.superman.com'
SOURCE: '.'
EXTRA_ARGS: '-e'


1 answer

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2019

@[deleted] you should be able to just remove the .git and readme.md before running the pipe:

pipelines:
default:
- step:
name: Deploy to Gcloud
deployment: production
script:
- rm -rf .git
- rm readme.md
- pipe: atlassian/google-cloud-storage-deploy:0.3.6
variables:
KEY_FILE: $GCP_KEYS
PROJECT: 'superman'
BUCKET: 'www.superman.com'
SOURCE: '.'

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events