Skip to content

Commit

Permalink
Only handle CCIP builds
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Oct 29, 2024
1 parent 7f2c953 commit c7dda8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 107 deletions.
104 changes: 0 additions & 104 deletions .goreleaser.develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,110 +35,6 @@ snapshot:
checksum:
name_template: checksums.txt
dockers:
- id: linux-amd64-chainlink
goos: linux
goarch: amd64
dockerfile: core/chainlink.goreleaser.Dockerfile
image_templates:
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}'
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}-amd64'
- '{{ .Env.IMG_PRE }}/chainlink:sha-{{ .ShortCommit }}-amd64'
extra_files:
- tmp/libs
build_flag_templates:
- --platform=linux/amd64
- --pull
- --build-arg=CHAINLINK_USER=chainlink
- --build-arg=COMMIT_SHA={{ .FullCommit }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description="node of the decentralized oracle network, bridging on and off-chain computation"
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.title=chainlink
- --label=org.opencontainers.image.url=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
use: buildx
- id: linux-amd64-chainlink-plugins
goos: linux
goarch: amd64
dockerfile: core/chainlink.goreleaser.Dockerfile
image_templates:
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}-plugins'
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}-plugins-amd64'
- '{{ .Env.IMG_PRE }}/chainlink:sha-{{ .ShortCommit }}-plugins-amd64'
extra_files:
- tmp/libs
- tmp/plugins
build_flag_templates:
- --platform=linux/amd64
- --pull
- --build-arg=CHAINLINK_USER=chainlink
- --build-arg=COMMIT_SHA={{ .FullCommit }}
- --build-arg=CL_MEDIAN_CMD=chainlink-feeds
- --build-arg=CL_MERCURY_CMD=chainlink-mercury
- --build-arg=CL_SOLANA_CMD=chainlink-solana
- --build-arg=CL_STARKNET_CMD=chainlink-starknet
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description="node of the decentralized oracle network, bridging on and off-chain computation"
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.title=chainlink
- --label=org.opencontainers.image.url=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
use: buildx
- id: linux-arm64-chainlink
goos: linux
goarch: arm64
dockerfile: core/chainlink.goreleaser.Dockerfile
image_templates:
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}-arm64'
- '{{ .Env.IMG_PRE }}/chainlink:sha-{{ .ShortCommit }}-arm64'
extra_files:
- tmp/libs
build_flag_templates:
- --platform=linux/arm64
- --pull
- --build-arg=CHAINLINK_USER=chainlink
- --build-arg=COMMIT_SHA={{ .FullCommit }}
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description="node of the decentralized oracle network, bridging on and off-chain computation"
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.title=chainlink
- --label=org.opencontainers.image.url=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
use: buildx
- id: linux-arm64-chainlink-plugins
goos: linux
goarch: arm64
dockerfile: core/chainlink.goreleaser.Dockerfile
image_templates:
- '{{ .Env.IMG_PRE }}/chainlink:{{ .Env.IMG_TAG }}-plugins-arm64'
- '{{ .Env.IMG_PRE }}/chainlink:sha-{{ .ShortCommit }}-plugins-arm64'
extra_files:
- tmp/libs
- tmp/plugins
build_flag_templates:
- --platform=linux/arm64
- --pull
- --build-arg=CHAINLINK_USER=chainlink
- --build-arg=COMMIT_SHA={{ .FullCommit }}
- --build-arg=CL_MEDIAN_CMD=chainlink-feeds
- --build-arg=CL_MERCURY_CMD=chainlink-mercury
- --build-arg=CL_SOLANA_CMD=chainlink-solana
- --build-arg=CL_STARKNET_CMD=chainlink-starknet
- --label=org.opencontainers.image.created={{ .Date }}
- --label=org.opencontainers.image.description="node of the decentralized oracle network, bridging on and off-chain computation"
- --label=org.opencontainers.image.licenses=MIT
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.title=chainlink
- --label=org.opencontainers.image.url=https://github.com/smartcontractkit/chainlink
- --label=org.opencontainers.image.version={{ .Env.VERSION }}
use: buildx
- id: linux-amd64-ccip
goos: linux
goarch: amd64
Expand Down
4 changes: 1 addition & 3 deletions tools/goreleaser-config/gen_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ func Generate(environment string) config.Project {
checkEnvironments(environment)
architectures := []string{"amd64", "arm64"}

architectures := []string{"amd64", "arm64"}

project := config.Project{
ProjectName: "ccip",
Version: 2,
Expand Down Expand Up @@ -181,7 +179,7 @@ func dockers(environment string, architectures []string) []config.Docker {
}

case "develop", "production":
imageNames := []string{"chainlink", "ccip"}
imageNames := []string{"ccip"}

for _, imageName := range imageNames {
for _, arch := range architectures {
Expand Down

0 comments on commit c7dda8f

Please sign in to comment.