-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheigenlayer-deploy.pkr.hcl
56 lines (52 loc) · 1.34 KB
/
eigenlayer-deploy.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
packer {
required_plugins {
docker = {
version = ">= 1.0.8"
source = "github.com/hashicorp/docker"
}
}
}
variable "account" {
type = string
default = "0x123463a4b065722e99115d6c222f267d9cabb524"
description = "Address of the account to use to publish smart contracts"
}
variable "version" {
type = string
description = "Version of the image"
}
source "docker" "eigenlayer" {
changes = [
"ENTRYPOINT [\"forge\", \"script\"]",
"WORKDIR /eigenlayer",
]
commit = true
image = "ghcr.io/foundry-rs/foundry:nightly-c2e529786c07ee7069cefcd4fe2db41f0e46cef6"
platform = "linux/amd64"
}
build {
sources = ["source.docker.eigenlayer"]
provisioner "shell" {
inline = [
"apk update --no-cache && apk upgrade --no-cache",
"apk add --update --no-cache git",
"mkdir /eigenlayer",
"cd /eigenlayer",
"git clone https://github.com/Layr-Labs/eigenlayer-contracts.git",
"cd eigenlayer-contracts",
"forge install",
"forge build",
]
}
post-processors {
post-processor "docker-tag" {
repository = "public.ecr.aws/ivynet/iv1-eigenlayer"
tags = [var.version, "latest"]
}
post-processor "docker-push" {
ecr_login = true
aws_profile = "ivy-test"
login_server = "public.ecr.aws/ivynet/iv1-eigenlayer"
}
}
}