-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GHA CD for prod over circleci (#6039)
- Loading branch information
1 parent
10a1e92
commit 77f06c1
Showing
8 changed files
with
1 addition
and
332 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
.DEFAULT_GOAL := build | ||
|
||
ENVIRONMENT ?= release | ||
|
||
GOPATH ?= $(HOME)/go | ||
REPO := smartcontract/chainlink | ||
COMMIT_SHA ?= $(shell git rev-parse HEAD) | ||
VERSION = $(shell cat VERSION) | ||
GOBIN ?= $(GOPATH)/bin | ||
GO_LDFLAGS := $(shell tools/bin/ldflags) | ||
GOFLAGS = -ldflags "$(GO_LDFLAGS)" | ||
DOCKERFILE := core/chainlink.Dockerfile | ||
DOCKER_TAG ?= latest | ||
CHAINLINK_USER ?= root | ||
|
||
TAGGED_REPO := $(REPO):$(DOCKER_TAG) | ||
ECR_REPO := "$(AWS_ECR_URL)/chainlink:$(DOCKER_TAG)" | ||
|
||
.PHONY: install | ||
install: operator-ui-autoinstall install-chainlink-autoinstall ## Install chainlink and all its dependencies. | ||
|
@@ -86,21 +77,6 @@ presubmit: | |
gofmt -w ./core | ||
go mod tidy | ||
|
||
.PHONY: docker | ||
docker: ## Build the docker image. | ||
docker build \ | ||
-f $(DOCKERFILE) \ | ||
--build-arg ENVIRONMENT=$(ENVIRONMENT) \ | ||
--build-arg COMMIT_SHA=$(COMMIT_SHA) \ | ||
--build-arg CHAINLINK_USER=$(CHAINLINK_USER) \ | ||
-t $(TAGGED_REPO) \ | ||
. | ||
|
||
.PHONY: dockerpush | ||
dockerpush: ## Push the docker image to ecr | ||
docker push $(ECR_REPO) | ||
docker push $(ECR_REPO)-nonroot | ||
|
||
.PHONY: mockery | ||
mockery: $(mockery) | ||
go install github.com/vektra/mockery/[email protected] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.