-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a variable for branch? #60
Comments
Not currently but we could support a global Handlebars template on prefix,suffix,value attributes. In the meantime you can do this: steps:
-
name: Prepare
id: prep
run: |
echo ::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
-
name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
with:
images: name/app
tags: |
type=sha,prefix=${{ steps.prep.outputs.branch }}-,suffix=,enable=true |
I was looking for
|
@ekristen @monkbroc #71 should fix this issue. Can you test with |
Thanks! Yes, I confirm that #71 fixes this issue by using
|
Is there a way to do the branch name dynamically as the prefix?
Something like that ^
The text was updated successfully, but these errors were encountered: