forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '1a0363c885c2dbb1e48b03847dbd706d1ba43eba' into alphashr…
…/1.14.2
- Loading branch information
Showing
15 changed files
with
89 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Temporary script to remove tools from Azure pipelines agent to create more disk space room. | ||
sudo apt-get -y update | ||
sudo apt-get purge -y 'ghc-*' 'zulu-*-azure-jdk' 'libllvm*' 'mysql-*' 'dotnet-*' 'cpp-*' | ||
|
||
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.14.1 | ||
1.14.2 |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/bin/bash | ||
|
||
# Do not ever set -x here, it is a security hazard as it will place the credentials below in the | ||
# CI logs. | ||
set -e | ||
|
||
# This prefix is altered for the private security images on setec builds. | ||
DOCKER_IMAGE_PREFIX="${DOCKER_IMAGE_PREFIX:-envoyproxy/envoy}" | ||
|
||
# Test the docker build in all cases, but use a local tag that we will overwrite before push in the | ||
# cases where we do push. | ||
for BUILD_TYPE in "" "-alpine" "-alpine-debug"; do | ||
docker build -f ci/Dockerfile-envoy"${BUILD_TYPE}" -t "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}:local" . | ||
done | ||
|
||
MASTER_BRANCH="refs/heads/master" | ||
RELEASE_BRANCH_REGEX="^refs/heads/release/v.*" | ||
RELEASE_TAG_REGEX="^refs/tags/v.*" | ||
|
||
# Only push images for master builds, release branch builds, and tag builds. | ||
if [[ "${AZP_BRANCH}" != "${MASTER_BRANCH}" ]] && \ | ||
! [[ "${AZP_BRANCH}" =~ ${RELEASE_BRANCH_REGEX} ]] && \ | ||
! [[ "${AZP_BRANCH}" =~ ${RELEASE_TAG_REGEX} ]]; then | ||
echo 'Ignoring non-master branch or tag for docker push.' | ||
exit 0 | ||
fi | ||
|
||
# For master builds and release branch builds use the dev repo. Otherwise we assume it's a tag and | ||
# we push to the primary repo. | ||
if [[ "${AZP_BRANCH}" == "${MASTER_BRANCH}" ]] || \ | ||
[[ "${AZP_BRANCH}" =~ ${RELEASE_BRANCH_REGEX} ]]; then | ||
IMAGE_POSTFIX="-dev" | ||
IMAGE_NAME="$AZP_SHA1" | ||
else | ||
IMAGE_POSTFIX="" | ||
IMAGE_NAME="${AZP_BRANCH/refs\/tags\//}" | ||
fi | ||
|
||
docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD" | ||
|
||
for BUILD_TYPE in "" "-alpine" "-alpine-debug"; do | ||
docker tag "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}:local" "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:${IMAGE_NAME}" | ||
docker push "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:${IMAGE_NAME}" | ||
|
||
# Only push latest on master builds. | ||
if [[ "${AZP_BRANCH}" == "${MASTER_BRANCH}" ]]; then | ||
docker tag "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}:local" "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:latest" | ||
docker push "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:latest" | ||
fi | ||
|
||
# Push vX.Y-latest to tag the latest image in a release line | ||
if [[ "${AZP_BRANCH}" =~ ${RELEASE_TAG_REGEX} ]]; then | ||
RELEASE_LINE=$(echo "$IMAGE_NAME" | sed -E 's/(v[0-9]+\.[0-9]+)\.[0-9]+/\1-latest/') | ||
docker tag "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}:local" "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:${RELEASE_LINE}" | ||
docker push "${DOCKER_IMAGE_PREFIX}${BUILD_TYPE}${IMAGE_POSTFIX}:${RELEASE_LINE}" | ||
fi | ||
done | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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 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