-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
8 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
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,12 +1,14 @@ | ||
#!/bin/bash | ||
|
||
echo "Build hook running" | ||
VERSION=$(cat VERSION) | ||
|
||
echo "Build hook running for version $VERSION" | ||
|
||
# once dockerhub supports ARG before FROM (upgrade to 1.9) | ||
# docker build --build-arg CODE_VERSION=3.6 -t $DOCKER_REPO:3.6-$CACHE_TAG . | ||
# docker build --build-arg CODE_VERSION=3.5 -t $DOCKER_REPO:3.5-$CACHE_TAG . | ||
|
||
echo "Building 3.6..." | ||
docker build -t $DOCKER_REPO:3.6-$CACHE_TAG -f Dockerfile . | ||
docker build -t $DOCKER_REPO:3.6-$VERSION -f Dockerfile . | ||
echo "Building 3.5..." | ||
docker build -t $DOCKER_REPO:3.5-$CACHE_TAG -f Dockerfile.3.5 . | ||
docker build -t $DOCKER_REPO:3.5-$VERSION -f Dockerfile.3.5 . |
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,13 +1,14 @@ | ||
#!/bin/bash | ||
|
||
VERSION=$(cat VERSION) | ||
echo "Tagging and pushing..." | ||
|
||
docker tag $DOCKER_REPO:3.6-$CACHE_TAG $DOCKER_REPO:latest | ||
docker tag $DOCKER_REPO:3.6-$CACHE_TAG $DOCKER_REPO:3.6 | ||
docker tag $DOCKER_REPO:3.5-$CACHE_TAG $DOCKER_REPO:3.5 | ||
docker tag $DOCKER_REPO:3.6-$VERSION $DOCKER_REPO:latest | ||
docker tag $DOCKER_REPO:3.6-$VERSION $DOCKER_REPO:3.6 | ||
docker tag $DOCKER_REPO:3.5-$VERSION $DOCKER_REPO:3.5 | ||
|
||
docker push $DOCKER_REPO | ||
docker push $DOCKER_REPO:3.6-$CACHE_TAG | ||
docker push $DOCKER_REPO:3.6-$VERSION | ||
docker push $DOCKER_REPO:3.6 | ||
docker push $DOCKER_REPO:3.5-$CACHE_TAG | ||
docker push $DOCKER_REPO:3.5-$VERSION | ||
docker push $DOCKER_REPO:3.5 |