-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small bugfixes for deployment/release workflow (#91)
* Ensure the environment variable DRY_RUN does not conflict with the operations of deploy.sh * Add ability to push the dependency image so that it actually does save us some build time... * Add a production logging block; currently configured the same as dev and eval; can be overridden or tweaked as needed. * Ensure install-build-scripts has shebang. * [Bot] Update version to 1.2.2 Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8f63f92
commit 000ff29
Showing
6 changed files
with
52 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -35,3 +35,5 @@ base: &base | |
development: *base | ||
|
||
test: *base | ||
|
||
production: *base |
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "uw-husky-directory" | ||
version = "1.2.1" | ||
version = "1.2.2" | ||
description = "An updated version of the UW Directory" | ||
authors = ["Thomas Thorogood <[email protected]>"] | ||
license = "MIT" | ||
|
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,2 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
export BUILD_SCRIPTS_DIR="./.build-scripts" | ||
bash <(curl -Lsk https://uwiam.page.link/install-build-scripts) |
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,8 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
function print_help { | ||
cat <<EOF | ||
Use: update-dependency-image.sh [--debug --help] | ||
Options: | ||
-p, --push Push the fingerprint after building, this is risk-free | ||
and saves a lot of time in the future! | ||
-h, --help Show this message and exit | ||
-g, --debug Show commands as they are executing | ||
EOF | ||
} | ||
|
||
PUSH= | ||
|
||
while (( $# )) | ||
do | ||
case $1 in | ||
--help|-h) | ||
print_help | ||
exit 0 | ||
;; | ||
--debug|-g) | ||
set -x | ||
;; | ||
--push|-p) | ||
PUSH=1 | ||
;; | ||
*) | ||
echo "Invalid Option: $1" | ||
print_help | ||
exit 1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
test -z "${DEBUG}" || set -x | ||
image_repo=gcr.io/uwit-mci-iam/husky-directory-base | ||
fingerprint=$(./scripts/get-snapshot-fingerprint.sh) | ||
./.build-scripts/scripts/pull-or-build-image.sh \ | ||
-i $image_repo:$fingerprint \ | ||
-d docker/husky-directory-base.dockerfile | ||
|
||
if [[ -n "$PUSH" ]] | ||
then | ||
docker push $image_repo:$fingerprint | ||
fi |