0👍
If you use tag pipelines, you can use the BITBUCKET_TAG
environment variable:
pipelines:
tags:
'**':
- step: &build
script:
- # ...
- export IMAGE_TAG=$BITBUCKET_TAG
- skaffold build
https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/#Tags
Source:stackexchange.com