File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ variable "commit_sha" {
2+ type = string
3+ description = " The git commit SHA to use for the runtime image tag"
4+ }
5+
16job "relay-rewards-controller-live" {
27 datacenters = [" ator-fin" ]
38 type = " service"
@@ -28,13 +33,13 @@ job "relay-rewards-controller-live" {
2833 driver = " docker"
2934 config {
3035 network_mode = " host"
31- image = " ghcr.io/anyone-protocol/relay-rewards-controller:[[ .commit_sha ]] "
36+ image = " ghcr.io/anyone-protocol/relay-rewards-controller:${ var . commit_sha } "
3237 force_pull = true
3338 }
3439
3540 env {
3641 IS_LIVE = " true"
37- VERSION = " [[ .commit_sha ]] "
42+ VERSION = var . commit_sha
3843 REDIS_MODE = " sentinel"
3944 REDIS_MASTER_NAME = " relay-rewards-controller-live-redis-master"
4045 USE_HODLER = " true"
Original file line number Diff line number Diff line change 1+ variable "commit_sha" {
2+ type = string
3+ description = " The git commit SHA to use for the runtime image tag"
4+ }
5+
16job "relay-rewards-controller-stage" {
27 datacenters = [" ator-fin" ]
38 type = " service"
@@ -28,13 +33,13 @@ job "relay-rewards-controller-stage" {
2833 driver = " docker"
2934 config {
3035 network_mode = " host"
31- image = " ghcr.io/anyone-protocol/relay-rewards-controller:[[ .commit_sha ]] "
36+ image = " ghcr.io/anyone-protocol/relay-rewards-controller:${ var . commit_sha } "
3237 force_pull = true
3338 }
3439
3540 env {
3641 IS_LIVE = " true"
37- VERSION = " [[ .commit_sha ]] "
42+ VERSION = var . commit_sha
3843 REDIS_MODE = " sentinel"
3944 REDIS_MASTER_NAME = " relay-rewards-controller-stage-redis-master"
4045 USE_HODLER = " true"
You can’t perform that action at this time.
0 commit comments