-
Notifications
You must be signed in to change notification settings - Fork 523
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 (#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 * ci: remove cron trigger from the check changelog job (#3957) * fix: ci build and test of the golang-mage docker image (#3563) * [CI][docker] prepare required context (#4136) * packer: cache docker images (#3620) * fix: check that docker is installed (#3889) * Update Jenkinsfile Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com> Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com> Co-authored-by: Ivan Fernandez Calvo <kuisathaverat@users.noreply.github.com> Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
- Loading branch information
1 parent
2b046ec
commit c0b9d19
Showing
20 changed files
with
189 additions
and
133 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# shellcheck disable=SC1091 | ||
source /usr/local/bin/bash_standard_lib.sh | ||
|
||
# shellcheck disable=SC1091 | ||
source ./script/common.bash | ||
|
||
get_go_version | ||
|
||
DOCKER_IMAGES=" | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-arm | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-darwin | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main-debian7 | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-main-debian8 | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-mips | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-ppc | ||
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-s390x | ||
golang:${GO_VERSION} | ||
" | ||
if [ -x "$(command -v docker)" ]; then | ||
for image in ${DOCKER_IMAGES} | ||
do | ||
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue" | ||
done | ||
fi |
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 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
Oops, something went wrong.