Skip to content

Mix just syntax with bash in a rule #880

Answered by casey
mihaigalos asked this question in Q&A
Discussion options

You must be logged in to vote

It currently isn't possible to create just variables inside a recipe. However, since you're using a shebang, you could do this:

build tool:
    #!/usr/bin/env bash
    docker_image={{ docker_container_registry }}/{{ tool }}
    docker build -t $docker_image .

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mihaigalos
Comment options

@casey
Comment options

@casey
Comment options

@mihaigalos
Comment options

@mihaigalos
Comment options

Answer selected by mihaigalos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants