Hello,
id like to set the (docker) tag value based on the branch ( or rather PR ).
Something like :
set TAG = "latest" when PR on master branch
else
set TAG ="$BITBUCKET_BUILD"
Thank you
Hi @Admin Admin
Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support, it's nice to talk with you!
I would like to inform you that we had a feature request for this, but our developer team closed it as a "Won't Fix"* BCLOUD-12923 - Branch-Specific Environment Variables
As a workaround what I would like to suggest you is to set environmental variable at the beginning of the script:
script: - export TAG="$SECRET_PROD"
Please let us know if this solutions helps.
Best Regards,NorbertAtlassian Bitbucket Cloud Support
It looks like you're new here. Sign in or register to get started.