# SHA of currently deployed release

**URL:** <https://community.fly.io/t/sha-of-currently-deployed-release/8939>\
**Category:** General\
**Created:** [November 24, 2022, 8:24am UTC](https://community.fly.io/t/sha-of-currently-deployed-release/8939 "2022-11-24T08:24:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [December 1, 2022, 7:56pm UTC](https://community.fly.io/t/sha-of-currently-deployed-release/8939/10 "2022-12-01T19:56:42Z")

</div>

Once you fetch the `git` commit id, pass it on to Docker as `build-args` via `fly deploy`: [What is the correct workflow for utilising secrets during deployment? - #5 by kurt](https://community.fly.io/t/3761/5)

Also see: [Environment variables - #22 by ignoramous](https://community.fly.io/t/6601/22)

Note though, don’t use `build-args` for _secrets_: [How to include `fly-log-shipper` in a project? - #4 by ignoramous](https://community.fly.io/t/how-to-include-fly-log-shipper-in-a-project/7672/4)

> [@zoopzoop](#):
>
> When exactly is FLY\_IMAGE\_REF set?

I should have been clearer. `FLY_IMAGE_REF` is set for a Fly app at runtime (not build-time).

---

_[View the full topic](https://community.fly.io/t/sha-of-currently-deployed-release/8939)._
