forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): move CI scripts to the .ci directory (elastic#4452)
* chore(ci): movee windows scripts to the CI location * chore(ci): move more scripts * chore(ci): move check-changelogs to CI folder * chore(ci): move intake script to CI dir * chore(ci): move bench script * chore(ci): move sync script * chore(ci): move package to CI dir * chore(ci): move test-install to CI dir * chore(ci): remove unused windows script # Conflicts: # .ci/scripts/check-changelogs.sh # .ci/scripts/package-docker-snapshot.sh # Jenkinsfile
- Loading branch information
1 parent
2f3eb92
commit ce63151
Showing
17 changed files
with
123 additions
and
83 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
File renamed without changes.
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ source ./script/common.bash | |
|
||
jenkins_setup | ||
|
||
./script/jenkins/build.sh | ||
./.ci/scripts/build.sh |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
docker run --rm \ | ||
-v "$PWD":/usr/src/myapp \ | ||
-w /usr/src/myapp python:3.6.8-alpine \ | ||
sh -c 'pip3 install requests; python3 script/check_changelogs.py' |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Build the docker image for the apm-server, retag and push it to the given docker registry | ||
# | ||
# Arguments: | ||
# - NEW_TAG, this is the tag for the docker image to be pushed. | ||
# - NEW_IMAGE, this is the docker image name to be pushed. | ||
# | ||
set -euo pipefail | ||
|
||
NEW_TAG=${1:?Docker tag is not set} | ||
NEW_IMAGE=${2:?Docker image is not set} | ||
|
||
export PLATFORMS='linux/amd64' | ||
export TYPE='docker' | ||
export SNAPSHOT='true' | ||
export IMAGE="docker.elastic.co/apm/apm-server" | ||
|
||
echo 'INFO: Build docker images' | ||
make release | ||
|
||
echo 'INFO: Get the just built docker image' | ||
TAG=$(docker images ${IMAGE} --format "{{.Tag}}" | head -1) | ||
|
||
echo "INFO: Retag docker image (${IMAGE}:${TAG})" | ||
docker tag "${IMAGE}:${TAG}" "${NEW_IMAGE}:${NEW_TAG}" | ||
|
||
echo "INFO: Push docker image (${NEW_IMAGE}:${NEW_TAG})" | ||
docker push "${NEW_IMAGE}:${NEW_TAG}" |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -17,4 +17,4 @@ source ./script/common.bash | |
|
||
jenkins_setup | ||
|
||
script/jenkins/unit-test.sh | ||
./.ci/scripts/unit-test.sh |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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.