-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the
./release.sh
script working, and document how to use it (#142)
* Update release script to generate multiple architecture builds * Update CHANGELOG.md * Create instructions on how to create a release * Also update the `mhs-base` images Switch over to buildx to generate arm architecture image. Document that these exist within the dev notes. Bump to version 1.0.3
- Loading branch information
1 parent
ac970e4
commit 75001ae
Showing
9 changed files
with
58 additions
and
47 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.2 | ||
1.0.3 |
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.0.2 | ||
1.0.3 |
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.0.2 | ||
1.0.3 |
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 |
---|---|---|
@@ -1,28 +1,16 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
|
||
export BUILD_TAG=1.2.2 | ||
set -e | ||
|
||
cd .. | ||
|
||
./build.sh | ||
export BUILD_TAG=1.2.7 | ||
|
||
docker tag local/mhs-inbound:${BUILD_TAG} nhsdev/nia-mhs-inbound:${BUILD_TAG} | ||
docker tag local/mhs-outbound:${BUILD_TAG} nhsdev/nia-mhs-outbound:${BUILD_TAG} | ||
docker tag local/mhs-route:${BUILD_TAG} nhsdev/nia-mhs-route:${BUILD_TAG} | ||
git fetch | ||
git checkout $BUILD_TAG | ||
|
||
if [ "$1" == "-y" ]; | ||
then | ||
|
||
BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
if [[ "$BRANCH" != "develop" ]]; then | ||
echo 'Can only run this on the develop branch'; | ||
exit 1; | ||
fi | ||
cd .. | ||
|
||
echo "Tagging and pushing Docker image and git tag" | ||
docker push nhsdev/nia-mhs-inbound:${BUILD_TAG} | ||
docker push nhsdev/nia-mhs-outbound:${BUILD_TAG} | ||
docker push nhsdev/nia-mhs-route:${BUILD_TAG} | ||
git tag -a ${BUILD_TAG} -m "Release ${BUILD_TAG}" | ||
git push origin ${BUILD_TAG} | ||
fi | ||
# These are buildx versions of what is inside of `build.sh` | ||
BASE_IMAGE_TAG="${BASE_IMAGE_TAG:-latest}" | ||
docker buildx build --build-arg BASE_IMAGE_TAG=$BASE_IMAGE_TAG -f mhs/inbound/Dockerfile . --platform linux/arm64/v8,linux/amd64 --tag nhsdev/nia-mhs-inbound:${BUILD_TAG} --push | ||
docker buildx build --build-arg BASE_IMAGE_TAG=$BASE_IMAGE_TAG -f mhs/outbound/Dockerfile . --platform linux/arm64/v8,linux/amd64 --tag nhsdev/nia-mhs-outbound:${BUILD_TAG} --push | ||
docker buildx build --build-arg BASE_IMAGE_TAG=$BASE_IMAGE_TAG -f mhs/spineroutelookup/Dockerfile . --platform linux/arm64/v8,linux/amd64 --tag nhsdev/nia-mhs-route:${BUILD_TAG} --push |