fix(image): align VERSION env var with pkg/version (#168)

This commit is contained in:
Andrew Rynhard 2018-10-17 09:06:22 -07:00 committed by GitHub
parent 4c4d692eb1
commit 04bb2dab8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,11 @@ tasks:
COPY src/packer.json /packer.json COPY src/packer.json /packer.json
COPY src/entrypoint.sh /bin/entrypoint.sh COPY src/entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /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"] ENTRYPOINT ["entrypoint.sh"]
rootfs: rootfs:
template: | template: |