-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive version in agent, ecs-init, and .rpm/.deb packages from the to…
…plevel VERSION file (#4423)
- Loading branch information
Showing
13 changed files
with
55 additions
and
228 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ else | |
GO_VERSION=$(shell cat ./GO_VERSION) | ||
endif | ||
|
||
VERSION=$(shell cat VERSION) | ||
|
||
export GO111MODULE=auto | ||
|
||
all: docker | ||
|
@@ -390,7 +392,6 @@ get-deps-init: | |
GO111MODULE=on go install honnef.co/go/tools/cmd/[email protected] | ||
|
||
amazon-linux-sources.tgz: | ||
./scripts/update-version.sh | ||
cp packaging/amazon-linux-ami-integrated/ecs-agent.spec ecs-agent.spec | ||
cp packaging/amazon-linux-ami-integrated/ecs.conf ecs.conf | ||
cp packaging/amazon-linux-ami-integrated/ecs.service ecs.service | ||
|
@@ -401,15 +402,14 @@ amazon-linux-sources.tgz: | |
|
||
.amazon-linux-rpm-integrated-done: amazon-linux-sources.tgz | ||
test -e SOURCES || ln -s . SOURCES | ||
rpmbuild --define "%_topdir $(PWD)" -bb ecs-agent.spec | ||
rpmbuild --define "%version ${VERSION}" --define "%_topdir $(PWD)" -bb ecs-agent.spec | ||
find RPMS/ -type f -exec cp {} . \; | ||
touch .amazon-linux-rpm-integrated-done | ||
|
||
amazon-linux-rpm-integrated: .amazon-linux-rpm-integrated-done | ||
|
||
# Make target for Amazon Linux Codebuild jobs | ||
.amazon-linux-rpm-codebuild-done: get-cni-sources | ||
./scripts/update-version.sh | ||
cp packaging/amazon-linux-ami-integrated/ecs-agent.spec ecs-agent.spec | ||
cp packaging/amazon-linux-ami-integrated/ecs.conf ecs.conf | ||
cp packaging/amazon-linux-ami-integrated/ecs.service ecs.service | ||
|
@@ -418,31 +418,27 @@ amazon-linux-rpm-integrated: .amazon-linux-rpm-integrated-done | |
cp packaging/amazon-linux-ami-integrated/amazon-ecs-volume-plugin.socket amazon-ecs-volume-plugin.socket | ||
tar -czf ./sources.tgz ecs-init scripts misc agent amazon-ecs-cni-plugins amazon-vpc-cni-plugins agent-container Makefile VERSION GO_VERSION | ||
test -e SOURCES || ln -s . SOURCES | ||
rpmbuild --define "%_topdir $(PWD)" -bb ecs-agent.spec | ||
rpmbuild --define "%version ${VERSION}" --define "%_topdir $(PWD)" -bb ecs-agent.spec | ||
find RPMS/ -type f -exec cp {} . \; | ||
touch .amazon-linux-rpm-codebuild-done | ||
|
||
amazon-linux-rpm-codebuild: .amazon-linux-rpm-codebuild-done | ||
|
||
.generic-rpm-integrated-done: get-cni-sources | ||
./scripts/update-version.sh | ||
cp packaging/generic-rpm-integrated/amazon-ecs-init.spec amazon-ecs-init.spec | ||
cp packaging/generic-rpm-integrated/ecs.service ecs.service | ||
cp packaging/generic-rpm-integrated/amazon-ecs-volume-plugin.service amazon-ecs-volume-plugin.service | ||
cp packaging/generic-rpm-integrated/amazon-ecs-volume-plugin.socket amazon-ecs-volume-plugin.socket | ||
tar -czf ./sources.tgz ecs-init scripts misc agent amazon-ecs-cni-plugins amazon-vpc-cni-plugins agent-container Makefile VERSION GO_VERSION | ||
test -e SOURCES || ln -s . SOURCES | ||
rpmbuild --define "%_topdir $(PWD)" -bb amazon-ecs-init.spec | ||
rpmbuild --define "%version ${VERSION}" --define "%_topdir $(PWD)" -bb amazon-ecs-init.spec | ||
find RPMS/ -type f -exec cp {} . \; | ||
touch .generic-rpm-integrated-done | ||
|
||
# Build init rpm | ||
generic-rpm-integrated: .generic-rpm-integrated-done | ||
|
||
VERSION = $(shell cat ecs-init/ECSVERSION) | ||
|
||
.generic-deb-integrated-done: get-cni-sources | ||
./scripts/update-version.sh | ||
mkdir -p BUILDROOT | ||
tar -czf ./amazon-ecs-init_${VERSION}.orig.tar.gz ecs-init scripts README.md | ||
cp -r packaging/generic-deb-integrated/debian Makefile ecs-init scripts misc agent agent-container amazon-ecs-cni-plugins amazon-vpc-cni-plugins README.md VERSION GO_VERSION BUILDROOT | ||
|
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 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 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 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 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 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 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.