-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run docker image smoke test for arm64
- Loading branch information
Showing
3 changed files
with
83 additions
and
54 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,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
# From https://github.com/esl/mongooseim-docker/pull/49 | ||
MIM_DOCKER_VERSION=6b62e9cf26c523e35fe78c57cbae2e8832f555d2 | ||
|
||
# We use output of generate_vsn, because it does not contain illegal characters, returns | ||
# git tag when building from tag itself, and is unique in any other case | ||
VERSION=`tools/generate_vsn.sh` | ||
DOCKERHUB_TAG=${VERSION} | ||
GIT_REF=`git rev-parse HEAD` | ||
GIT_COMMIT_MSG=`git log --format=%B -n 1 HEAD` | ||
|
||
if [ -n "$CIRCLE_PULL_REQUEST" ]; then | ||
# CircleCI doesn't provide PR number in env. var., so we need to extract it from PR URL | ||
# May not work with different service than GitHub | ||
# TODO: Possibly change it to something else during Tide integration | ||
PR_NUMBER=${CIRCLE_PULL_REQUEST##*/} | ||
DOCKERHUB_TAG="PR-${PR_NUMBER}" | ||
elif [ ${CIRCLE_BRANCH} == 'master' ]; then | ||
DOCKERHUB_TAG="latest"; | ||
fi | ||
|
||
echo "Tag: ${DOCKERHUB_TAG}" | ||
|
||
IMAGE_TAG=${DOCKERHUB_REPO}/mongooseim:${DOCKERHUB_TAG} | ||
|
||
git clone https://github.com/esl/mongooseim-docker.git | ||
cd mongooseim-docker | ||
git checkout $MIM_DOCKER_VERSION |