Skip to content

Commit

Permalink
fix(image): align VERSION env var with pkg/version (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Oct 17, 2018
1 parent 4c4d692 commit 04bb2da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/image/.conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ tasks:
COPY src/packer.json /packer.json
COPY src/entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
ENV VERSION {{ .Docker.Image.Tag }}
{{ if .Git.IsTag }}
ENV VERSION {{ .Git.Tag }}
{{ else }}
ENV VERSION {{ .Git.SHA }}
{{ end }}
ENTRYPOINT ["entrypoint.sh"]
rootfs:
template: |
Expand Down

0 comments on commit 04bb2da

Please sign in to comment.